[enh] configurable default oscar style
commit69d1dd3f862ee491518bc837325a498e66f925d0
authorAdam Tauber <asciimoo@gmail.com>
dateSun 19 Aug 2018, 15:23 (8 years ago)
parentbaacfac
searx/preferences.py+1
@@ -264,6 +264,7 @@ class Preferences(object):
264264 'False': False,
265265 'True': True}),
266266 'doi_resolver': MultipleChoiceSetting(['oadoi.org'], choices=DOI_RESOLVERS),
267+ 'oscar-style': EnumStringSetting(settings['ui'].get('theme_args', {}).get('oscar_style', 'logicodev'), choices=['', 'logicodev', 'logicodev-dark', 'pointhi']),
267268 }
268269
269270 self.engines = EnginesSetting('engines', choices=engines)
searx/settings.yml+2
@@ -20,6 +20,8 @@ ui:
2020 templates_path : "" # Custom templates path - leave it blank if you didn't change
2121 default_theme : oscar # ui theme
2222 default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
23+ theme_args :
24+ oscar_style : logicodev-dark # default style of oscar
2325
2426# searx supports result proxification using an external service: https://github.com/asciimoo/morty
2527# uncomment below section if you have running morty proxy