diff options
author | Chuang Zhu <genelocated@yandex.com> | 2021-05-18 12:08:42 +0800 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-06-01 07:41:38 -0400 |
commit | eac195620858b4312d1fcd4a783f17a07bc85ee3 (patch) | |
tree | f471604470744fa9c8812a7d50b426acd3e3595b /grc/gui | |
parent | df2ab4200b2abdf60914edc772509a471a776bed (diff) |
grc: fix dark theme name not affecting colors
Signed-off-by: Chuang Zhu <genelocated@yandex.com>
Diffstat (limited to 'grc/gui')
-rw-r--r-- | grc/gui/ParamWidgets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py index 54132acd1a..1cdfc34989 100644 --- a/grc/gui/ParamWidgets.py +++ b/grc/gui/ParamWidgets.py @@ -29,9 +29,9 @@ def have_dark_theme(): config.read(os.path.expanduser(Constants.GTK_SETTINGS_INI_PATH)) prefer_dark = config.get( 'Settings', Constants.GTK_INI_PREFER_DARK_KEY, fallback=None) - if prefer_dark in ('1', 'yes', 'true', 'on'): - theme_name = config.get( - 'Settings', Constants.GTK_INI_THEME_NAME_KEY, fallback=None) + theme_name = config.get( + 'Settings', Constants.GTK_INI_THEME_NAME_KEY, fallback=None) + if prefer_dark in ('1', 'yes', 'true', 'on') or is_dark_theme(theme_name): return True try: theme = subprocess.check_output( |