Theme: add a preference to center the results (Oscar) (2nd edition)

related to
* #1169
* #1281
* #1286
This commit is contained in:
Alexandre Flament 2022-06-03 14:10:48 +02:00
parent 43b8b64866
commit 8a85d1b0c7
8 changed files with 174 additions and 3 deletions

View file

@ -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'),