make default light/dark themes configurable, add support for main application and login form

This commit is contained in:
Andrew Dolgov
2025-08-01 17:20:05 +03:00
parent 851ddf4bbe
commit 8eb340c3ca
7 changed files with 28 additions and 4 deletions

View File

@@ -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() ?>