Merge pull request #1281 from dalf/style-center

Theme: add a preference to center the results
This commit is contained in:
Alexandre Flament 2022-06-05 21:39:58 +02:00 committed by GitHub
commit f8f6b95d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 279 additions and 131 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'),