diff options
| -rw-r--r-- | js/utility.js | 2 | ||||
| -rw-r--r-- | plugins/bookmarklets/init.php | 6 |
2 files changed, 7 insertions, 1 deletions
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 { </head> <body class='flat ttrss_utility css_loading'> <script type="text/javascript"> + const __default_light_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_LIGHT_THEME), 'themes/light.css') ?>"; + const __default_dark_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_DARK_THEME), 'themes/night.css') ?>"; + const UtilityApp = { init: function() { require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form', @@ -207,6 +210,9 @@ class Bookmarklets extends Plugin { </head> <body class='flat ttrss_utility share_popup css_loading'> <script type="text/javascript"> + const __default_light_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_LIGHT_THEME), 'themes/light.css') ?>"; + const __default_dark_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_DARK_THEME), 'themes/night.css') ?>"; + const UtilityApp = { init: function() { require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form', |