From 451bcab01fd591ec54b63af0fc7084dc9f37928b Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:18:43 -0400 Subject: Add auto option to body theme (#1086) * Add auto option to body theme * Fix firefox bug where themes do not set correctly in settings due to getOptions failing --- types/ext/display.d.ts | 2 ++ types/ext/query-parser.d.ts | 1 + types/ext/text-scanner.d.ts | 1 + 3 files changed, 4 insertions(+) (limited to 'types') diff --git a/types/ext/display.d.ts b/types/ext/display.d.ts index 7f4d8966..3aba304e 100644 --- a/types/ext/display.d.ts +++ b/types/ext/display.d.ts @@ -95,6 +95,8 @@ export type HistoryState = { url?: string; /** The originating document title of the content. */ documentTitle?: string; + /** Computed theme of the page */ + pageTheme?: 'dark' | 'light'; }; /** diff --git a/types/ext/query-parser.d.ts b/types/ext/query-parser.d.ts index b1064973..aa90e3a4 100644 --- a/types/ext/query-parser.d.ts +++ b/types/ext/query-parser.d.ts @@ -33,6 +33,7 @@ export type Events = { textSource: TextSource; optionsContext: OptionsContext; sentenceOffset: number | null; + pageTheme: 'dark' | 'light'; }; }; diff --git a/types/ext/text-scanner.d.ts b/types/ext/text-scanner.d.ts index 21ca8f24..4277d49a 100644 --- a/types/ext/text-scanner.d.ts +++ b/types/ext/text-scanner.d.ts @@ -122,6 +122,7 @@ export type Events = { textSource: TextSource.TextSource; optionsContext: Settings.OptionsContext; detail: SearchResultDetail; + pageTheme: 'dark' | 'light'; }; searchEmpty: { inputInfo: InputInfo; -- cgit v1.2.3