diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-11-19 17:14:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-19 17:14:35 +0100 |
| commit | bc0cf9e83e2b52a45ea9a13ffdace07a622ed0cc (patch) | |
| tree | a179697bd18097f6368eb14b630aa126cea35857 /searx/settings_defaults.py | |
| parent | 256ccc4a552ff51a73dc58f33442861870141869 (diff) | |
| parent | cf9d161d265ac23cdb1317b8dc878de4235819d3 (diff) | |
Merge pull request #521 from dalf/simple-theme-style-pref
Simple theme: allow the user to choose auto, light, dark style
Diffstat (limited to 'searx/settings_defaults.py')
| -rw-r--r-- | searx/settings_defaults.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 1a755fb8b..69b6a0fb7 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -19,6 +19,7 @@ logger = logging.getLogger('searx') OUTPUT_FORMATS = ['html', 'csv', 'json', 'rss'] LANGUAGE_CODES = ['all'] + list(l[0] for l in languages) OSCAR_STYLE = ('logicodev', 'logicodev-dark', 'pointhi') +SIMPLE_STYLE = ('auto', 'light', 'dark') CATEGORY_ORDER = [ 'general', 'images', @@ -183,6 +184,7 @@ SCHEMA = { 'default_locale': SettingsValue(str, ''), 'theme_args': { 'oscar_style': SettingsValue(OSCAR_STYLE, 'logicodev'), + 'simple_style': SettingsValue(SIMPLE_STYLE, 'auto'), }, 'results_on_new_tab': SettingsValue(bool, False), 'advanced_search': SettingsValue(bool, False), |