Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 189df7db authored by Alexandre Flament's avatar Alexandre Flament Committed by GitHub
Browse files

Merge pull request #1287 from dalf/style-center-2nd

Theme: add a preference to center the results (Oscar) (2nd edition)
parents 62e88e63 e6c30009
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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'),
+2 −0
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ ui:
  query_in_title: false
  # ui theme
  default_theme: simple
  # center the results ?
  center_aligment: false
  # Default interface locale - leave blank to detect from browser information or
  # use codes from the 'locales' config section
  default_locale: ""
+1 −0
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@ SCHEMA = {
        'theme_args': {
            'simple_style': SettingsValue(SIMPLE_STYLE, 'auto'),
        },
        'center_aligment': SettingsValue(bool, False),
        'results_on_new_tab': SettingsValue(bool, False),
        'advanced_search': SettingsValue(bool, False),
        'query_in_title': SettingsValue(bool, False),
Loading