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 --- test/test-options-util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test-options-util.js b/test/test-options-util.js index a46e4248..aa8a5bdb 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -286,8 +286,8 @@ function createProfileOptionsUpdatedTestData1() { compactTags: false, glossaryLayoutMode: 'default', mainDictionary: '', - popupTheme: 'default', - popupOuterTheme: 'default', + popupTheme: 'light', + popupOuterTheme: 'light', customPopupCss: '', customPopupOuterCss: '', enableWanakana: true, @@ -600,7 +600,7 @@ function createOptionsUpdatedTestData1() { } ], profileCurrent: 0, - version: 17, + version: 18, global: { database: { prefixWildcardsSupported: false -- cgit v1.2.3