From f61690ea2c4b5142c470dbe288446afadae11dbc Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 3 Apr 2022 16:20:55 -0400 Subject: Theme updates (#2105) * Change siteColor to siteTheme * Fix potential null exception * Simplify * Update display theme assignment * Add a data-browser-theme attribute * Add "browser" option for theme * Create ThemeController * Add theme-controller.js to relevant pages * Use ThemeController * Simplify * Fix 'light' being used instead of 'default' * Update the settings values to more accurately reflect their usage * Change default site theme in display.js * Remove async * Restore async for consistency --- ext/data/schemas/options-schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/data') diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json index 5c01f9f8..74ae3300 100644 --- a/ext/data/schemas/options-schema.json +++ b/ext/data/schemas/options-schema.json @@ -214,12 +214,12 @@ }, "popupTheme": { "type": "string", - "enum": ["default", "dark"], + "enum": ["light", "dark", "browser"], "default": "default" }, "popupOuterTheme": { "type": "string", - "enum": ["default", "dark", "auto"], + "enum": ["light", "dark", "browser", "site"], "default": "default" }, "customPopupCss": { -- cgit v1.2.3