summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-06-03 14:10:48 +0200
committerAlexandre Flament <alex@al-f.net>2022-06-18 08:54:24 +0200
commit8a85d1b0c7b03cc0d0f82287a114728b521a5a47 (patch)
tree53e78ebafe2c07edc2baae4afa27c3787076750a /searx/preferences.py
parent43b8b64866e450dc4143afd209258f40d6ac3325 (diff)
downloadsearxng-8a85d1b0c7b03cc0d0f82287a114728b521a5a47.tar.gz
searxng-8a85d1b0c7b03cc0d0f82287a114728b521a5a47.zip
Theme: add a preference to center the results (Oscar) (2nd edition)
related to * #1169 * #1281 * #1286
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 46b7b39d7..a7ecac55e 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -365,6 +365,16 @@ class Preferences:
locked=is_locked('simple_style'),
choices=['', 'auto', 'light', 'dark']
),
+ 'center_aligment': MapSetting(
+ settings['ui']['center_aligment'],
+ locked=is_locked('center_aligment'),
+ map={
+ '0': False,
+ '1': True,
+ 'False': False,
+ 'True': True
+ }
+ ),
'advanced_search': MapSetting(
settings['ui']['advanced_search'],
locked=is_locked('advanced_search'),