From b803f85ec26b1d4ccbfafab9df697f54b8744211 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 10 Aug 2025 12:27:38 +0000 Subject: Fix default dark mode CSS path in UtilityJS, use configurable default themes in bookmarklets. --- js/utility.js | 2 +- plugins/bookmarklets/init.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/js/utility.js b/js/utility.js index 070e9e2d1..2e27c4fe6 100644 --- a/js/utility.js +++ b/js/utility.js @@ -8,7 +8,7 @@ window.addEventListener("load", function() { console.log("night mode changed to", is_night); const light_theme = typeof __default_light_theme != 'undefined' ? __default_light_theme : 'themes/light.css'; - const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/dark.css'; + const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/night.css'; if (link) { const css_override = is_night ? dark_theme : light_theme; diff --git a/plugins/bookmarklets/init.php b/plugins/bookmarklets/init.php index f5b3ab1ca..206950a5b 100644 --- a/plugins/bookmarklets/init.php +++ b/plugins/bookmarklets/init.php @@ -60,6 +60,9 @@ class Bookmarklets extends Plugin {