ui: use greyscale solaar icon in tray when using symbolic icons

This commit is contained in:
Peter F. Patel-Schneider 2022-01-18 11:14:01 -05:00
parent 3a182c4988
commit df8e936769
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ def _init_icon_paths():
_log.debug('icon theme paths: %s', _default_theme.get_search_path())
if gtk.battery_icons_style == 'symbolic':
global TRAY_OKAY
TRAY_OKAY = TRAY_INIT # use monochrome tray icon
if not _default_theme.has_icon('battery-good-symbolic'):
_log.warning('failed to detect symbolic icons')
gtk.battery_icons_style = 'regular'