diff options
| author | 2024-06-06 22:24:58 +0200 | |
|---|---|---|
| committer | 2024-06-06 22:24:58 +0200 | |
| commit | e98c57841b843ed881f06ce6ed1c9c89942c27b8 (patch) | |
| tree | 7120e973e479e33474bcd48746566d6cc3de8bdc /app/Controllers/configureController.php | |
| parent | 86f48db4a7a422602407fc488b434bbfa3e81b24 (diff) | |
Default dark mode to auto (#5582)
* Default dark mode to auto
Set default dark mode to automatic instead of disabled.
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4843
* Selected themes
* For compatible themes only
Diffstat (limited to 'app/Controllers/configureController.php')
| -rw-r--r-- | app/Controllers/configureController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 8ec14fce9..f28369477 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -27,7 +27,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { * The options available on the page are: * - language (default: en) * - theme (default: Origin) - * - darkMode (default: no) + * - darkMode (default: auto) * - content width (default: thin) * - display of read action in header * - display of favorite action in header @@ -48,7 +48,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { FreshRSS_Context::userConf()->language = Minz_Request::paramString('language') ?: 'en'; FreshRSS_Context::userConf()->timezone = Minz_Request::paramString('timezone'); FreshRSS_Context::userConf()->theme = Minz_Request::paramString('theme') ?: FreshRSS_Themes::$defaultTheme; - FreshRSS_Context::userConf()->darkMode = Minz_Request::paramString('darkMode') ?: 'no'; + FreshRSS_Context::userConf()->darkMode = Minz_Request::paramString('darkMode') ?: 'auto'; FreshRSS_Context::userConf()->content_width = Minz_Request::paramString('content_width') ?: 'thin'; FreshRSS_Context::userConf()->topline_read = Minz_Request::paramBoolean('topline_read'); FreshRSS_Context::userConf()->topline_favorite = Minz_Request::paramBoolean('topline_favorite'); |
