summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2018-08-19 15:23:11 +0200
committerAdam Tauber <asciimoo@gmail.com>2018-08-19 15:28:43 +0200
commit69d1dd3f862ee491518bc837325a498e66f925d0 (patch)
tree5787a3b828367f9b9da23e413eebcc0652c9875d
parentbaacfac32b63ceb3ef784e3ff5f1b3ae51ee38ff (diff)
downloadsearxng-69d1dd3f862ee491518bc837325a498e66f925d0.tar.gz
searxng-69d1dd3f862ee491518bc837325a498e66f925d0.zip
[enh] configurable default oscar style
-rw-r--r--searx/preferences.py1
-rw-r--r--searx/settings.yml2
2 files changed, 3 insertions, 0 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 5ff70191a..fb46edd63 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -264,6 +264,7 @@ class Preferences(object):
'False': False,
'True': True}),
'doi_resolver': MultipleChoiceSetting(['oadoi.org'], choices=DOI_RESOLVERS),
+ 'oscar-style': EnumStringSetting(settings['ui'].get('theme_args', {}).get('oscar_style', 'logicodev'), choices=['', 'logicodev', 'logicodev-dark', 'pointhi']),
}
self.engines = EnginesSetting('engines', choices=engines)
diff --git a/searx/settings.yml b/searx/settings.yml
index e05d5f97c..812da7472 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -20,6 +20,8 @@ ui:
templates_path : "" # Custom templates path - leave it blank if you didn't change
default_theme : oscar # ui theme
default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
+ theme_args :
+ oscar_style : logicodev-dark # default style of oscar
# searx supports result proxification using an external service: https://github.com/asciimoo/morty
# uncomment below section if you have running morty proxy