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 /classes/Config.php | |
| 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 'classes/Config.php')
| -rw-r--r-- | classes/Config.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/Config.php b/classes/Config.php index 7be529e41..49715a576 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -214,6 +214,12 @@ class Config { /** scheduled task to send digests, value should be valid cron expression */ const SCHEDULE_SEND_HEADLINES_DIGESTS = "SCHEDULE_SEND_HEADLINES_DIGESTS"; + /** default (fallback) light theme path */ + const DEFAULT_LIGHT_THEME = "DEFAULT_LIGHT_THEME"; + + /** default (fallback) dark (night) theme path */ + const DEFAULT_DARK_THEME = "DEFAULT_DARK_THEME"; + /** default values for all global configuration options */ private const _DEFAULTS = [ Config::DB_TYPE => [ "pgsql", Config::T_STRING ], @@ -280,6 +286,8 @@ class Config { Config::SCHEDULE_EXPIRE_ERROR_LOG => ["@hourly", Config::T_STRING], Config::SCHEDULE_EXPIRE_LOCK_FILES => ["@hourly", Config::T_STRING], Config::SCHEDULE_SEND_HEADLINES_DIGESTS => ["@hourly", Config::T_STRING], + Config::DEFAULT_LIGHT_THEME => [ "light.css", Config::T_STRING], + Config::DEFAULT_DARK_THEME => [ "night.css", Config::T_STRING], ]; private static ?Config $instance = null; |