Browse Source

Added cursor theme option

sisyphus
JezerM 4 years ago
parent
commit
9466f1c037
  1. 5
      .gitignore
  2. 2
      dist/web-greeter.yml
  3. 2
      web-greeter/globals.py
  4. 5
      web-greeter/whither.yml

5
.gitignore vendored

@ -50,3 +50,8 @@ Makefile.in
/install-sh /install-sh
/missing /missing
/stamp-h1 /stamp-h1
# gh-pages
_book/
node_modules/
package-lock.json

2
dist/web-greeter.yml vendored

@ -18,6 +18,7 @@ branding:
# screensaver_timeout: Blank the screen after this many seconds of inactivity. # screensaver_timeout: Blank the screen after this many seconds of inactivity.
# secure_mode: Don't allow themes to make remote http requests. # secure_mode: Don't allow themes to make remote http requests.
# theme: Greeter theme to use. # theme: Greeter theme to use.
# icon_theme: Icon/cursor theme to use, located in /usr/share/icons/
# time_format: A moment.js format string so the greeter can generate localized time for display. # time_format: A moment.js format string so the greeter can generate localized time for display.
# time_language: Language to use when displaying the time or "auto" to use the system's language. # time_language: Language to use when displaying the time or "auto" to use the system's language.
# #
@ -29,6 +30,7 @@ greeter:
screensaver_timeout: 300 screensaver_timeout: 300
secure_mode: True secure_mode: True
theme: default theme: default
icon_theme: Adwaita
time_format: LT time_format: LT
time_language: auto time_language: auto

2
web-greeter/globals.py

@ -177,6 +177,8 @@ class WebGreeter(App):
self.config.greeter.update(greeter_config) self.config.greeter.update(greeter_config)
self.config.features.update(features_config) self.config.features.update(features_config)
os.environ["XCURSOR_THEME"] = greeter_config["icon_theme"]
self._config.debug_mode = greeter_config['debug_mode'] self._config.debug_mode = greeter_config['debug_mode']
self._config.allow_remote_urls = not greeter_config['secure_mode'] self._config.allow_remote_urls = not greeter_config['secure_mode']

5
web-greeter/whither.yml

@ -37,10 +37,15 @@ WebGreeter:
screensaver_timeout: 300 screensaver_timeout: 300
secure_mode: True secure_mode: True
theme: default theme: default
icon_theme: Adwaita
time_format: LT time_format: LT
time_language: auto time_language: auto
features: features:
battery: False battery: False
backlight:
enabled: False
value: 10
steps: 0
greeters_dir: '@greeters_dir@' greeters_dir: '@greeters_dir@'
locale_dir: '@locale_dir@' locale_dir: '@locale_dir@'
themes_dir: '@themes_dir@' themes_dir: '@themes_dir@'

Loading…
Cancel
Save