From 2553826b55b55bf6d02f68e3323a0fbb8a3067e8 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sun, 7 Apr 2019 12:06:12 +0100 Subject: [PATCH] Make default theme light Former-commit-id: 3fad8ed95e21d16d852a5937288ddea7b2afa498 [formerly 6d780227f0df20e87bf7039a0127afa6b9603a97] Former-commit-id: a60732cfc47d82675addf00c1a163b864fb98651 --- www/js/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/init.js b/www/js/init.js index 8f4aa7cb..4f1b8703 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -43,8 +43,8 @@ params['cssSource'] = getCookie('cssSource') || "auto"; //Set default to "auto", params['removePageMaxWidth'] = getCookie('removePageMaxWidth') != null ? getCookie('removePageMaxWidth') : "auto"; //Set default for removing max-width restriction on Wikimedia pages ("auto" = removed in desktop, not in mobile; true = always remove; false = never remove) params['openAllSections'] = getCookie('openAllSections') != null ? getCookie('openAllSections') : true; //Set default for opening all sections in ZIMs that have collapsible sections and headings ("auto" = let CSS decide according to screen width; true = always open until clicked by user; false = always closed until clicked by user) params['cssCache'] = getCookie('cssCache') != null ? getCookie('cssCache') : true; //Set default to true to use cached CSS, false to use Zim only -params['cssTheme'] = getCookie('cssTheme') || 'auto'; //Set default to 'auto', 'light', 'dark' or 'invert' to use respective themes for articles -params['cssUITheme'] = getCookie('cssUITheme') || 'auto'; //Set default to 'auto', 'light' or 'dark' to use respective themes for UI +params['cssTheme'] = getCookie('cssTheme') || 'light'; //Set default to 'auto', 'light', 'dark' or 'invert' to use respective themes for articles +params['cssUITheme'] = getCookie('cssUITheme') || 'light'; //Set default to 'auto', 'light' or 'dark' to use respective themes for UI params['imageDisplay'] = getCookie('imageDisplay') != null ? getCookie('imageDisplay') : true; //Set default to display images from Zim params['hideToolbar'] = getCookie('hideToolbar') != null ? getCookie('hideToolbar') : false; //Set default to hide the top toolbar on scroll params['rememberLastPage'] = getCookie('rememberLastPage') != null ? getCookie('rememberLastPage') : true; //Set default option to remember the last visited page between sessions