summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-19 13:49:16 +0100
committerAlexandre Flament <alex@al-f.net>2021-11-19 16:45:50 +0100
commitec5a82fccd658790708b230516fa6ce93f9c7612 (patch)
tree4e8c67b41670ccc5bd0132b5b1005eca45ac77bb /searx/preferences.py
parentf6bfc8f4615ba91f3c54687ae9f0dc828507573e (diff)
downloadsearxng-ec5a82fccd658790708b230516fa6ce93f9c7612.tar.gz
searxng-ec5a82fccd658790708b230516fa6ce93f9c7612.zip
[enh] simple theme: add "simple-style" preferences
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 5ff89c969..9c549cc01 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -393,7 +393,13 @@ class Preferences:
'oscar-style': EnumStringSetting(
settings['ui']['theme_args']['oscar_style'],
is_locked('oscar-style'),
- choices=['', 'logicodev', 'logicodev-dark', 'pointhi']),
+ choices=['', 'logicodev', 'logicodev-dark', 'pointhi']
+ ),
+ 'simple_style': EnumStringSetting(
+ settings['ui']['theme_args']['simple_style'],
+ is_locked('simple_style'),
+ choices=['', 'auto', 'light', 'dark']
+ ),
'advanced_search': MapSetting(
settings['ui']['advanced_search'],
is_locked('advanced_search'),