diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-08-04 20:09:08 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-08-04 20:09:08 +0300 |
| commit | 906063b1d118fb8c94299fc1f23135519bf8a47f (patch) | |
| tree | a35399d82497cbc965e9ab71871eda3b801b58f7 /js/App.js | |
| parent | 851ddf4bbe750e30816b6c494165e9860bd39b92 (diff) | |
| parent | 19fc3bff213d56f52982eb53bdc8eb9d910f882e (diff) | |
Merge branch 'configurable-default-themes' into 'master'
make default light/dark themes configurable, add support for main application and login form
See merge request tt-rss/tt-rss!169
Diffstat (limited to 'js/App.js')
| -rw-r--r-- | js/App.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -173,7 +173,7 @@ const App = { if (link) { if (navigator.onLine) { - const css_override = is_night ? "themes/night.css" : "themes/light.css"; + const css_override = is_night ? App.getInitParam("default_dark_theme") : App.getInitParam("default_light_theme"); link.setAttribute("href", css_override + "?" + Date.now()); } else if (retry < 5) { console.log("nightModeChanged: we're offline, will attempt to retry..."); @@ -704,6 +704,8 @@ const App = { window.onerror = this.Error.onWindowError; this.setInitParam("csrf_token", __csrf_token); + this.setInitParam("default_light_theme", __default_light_theme); + this.setInitParam("default_dark_theme", __default_dark_theme); this.setupNightModeDetection(() => { parser.parse(); |