diff options
| author | 2023-01-09 10:40:38 +0100 | |
|---|---|---|
| committer | 2023-01-09 10:40:38 +0100 | |
| commit | b5a418ec1618cb1a058aee3dd47baa63562c9194 (patch) | |
| tree | 4338c14056ffd1df9eb673f9eb97a77ae12267ab /app/Models/ConfigurationSetter.php | |
| parent | bbe3eb8f41ca9c25d1619cda9609392ffc803146 (diff) | |
Added: Dark mode for Origine +Origine compact themes (#4843)
* first draft
* fix: theme slider: properties box
* improved colors
* option to enable/disable dark mode
* fixes
* Update app/i18n/fr/conf.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* i18n english improved
* fix dark background color for favorites + hover colors
* select list: no, auto
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
| -rw-r--r-- | app/Models/ConfigurationSetter.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php index c822bcf4d..258c2ad58 100644 --- a/app/Models/ConfigurationSetter.php +++ b/app/Models/ConfigurationSetter.php @@ -234,6 +234,13 @@ class FreshRSS_ConfigurationSetter { $data['sticky_post'] = $this->handleBool($value); } + private function _darkMode(&$data, $value) { + if (!in_array($value, [ 'no', 'auto'], true)) { + $value = 'no'; + } + $data['darkMode'] = $value; + } + private function _bottomline_date(&$data, $value) { $data['bottomline_date'] = $this->handleBool($value); } |
