aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-08-04 20:09:08 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-08-04 20:09:08 +0300
commit906063b1d118fb8c94299fc1f23135519bf8a47f (patch)
treea35399d82497cbc965e9ab71871eda3b801b58f7 /index.php
parent851ddf4bbe750e30816b6c494165e9860bd39b92 (diff)
parent19fc3bff213d56f52982eb53bdc8eb9d910f882e (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 'index.php')
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index 7c58e4b7e..419150e37 100644
--- a/index.php
+++ b/index.php
@@ -29,6 +29,9 @@
<script type="text/javascript">
const __csrf_token = "<?= $_SESSION["csrf_token"]; ?>";
+
+ 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') ?>";
</script>
<?php UserHelper::print_user_stylesheet() ?>