summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-08-01 17:20:05 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-08-01 17:22:21 +0300
commit8eb340c3ca9f30e48d8019f16d3b2a4385881192 (patch)
tree1e798aae0960cf292d0253e781c5c432b3dfae38 /prefs.php
parent851ddf4bbe750e30816b6c494165e9860bd39b92 (diff)
make default light/dark themes configurable, add support for main application and login form
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/prefs.php b/prefs.php
index 36d496d5e..9c9980e2a 100644
--- a/prefs.php
+++ b/prefs.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() ?>