diff options
author | Sebastian Koslowski <sebastian.koslowski@gmail.com> | 2020-05-16 22:01:02 +0200 |
---|---|---|
committer | Sebastian Koslowski <sebastian.koslowski@gmail.com> | 2020-05-16 22:02:03 +0200 |
commit | bfe366bf354c87c6275d5dd921aac97d9591ba92 (patch) | |
tree | 74f82de828f9d1d19f5042dbbcdb0f6c8792e7dc | |
parent | 9ee8082f1e2a704d524d25cbd9e3234ae3560d99 (diff) |
grc: fix dark theme detection
...for systems with no theme set.
-rw-r--r-- | grc/gui/ParamWidgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py index 2089e9cd72..feea8f8418 100644 --- a/grc/gui/ParamWidgets.py +++ b/grc/gui/ParamWidgets.py @@ -24,7 +24,7 @@ def have_dark_theme(): """ Check if a theme is dark based on its name. """ - return theme_name in Constants.GTK_DARK_THEMES or "dark" in theme_name.lower() + return theme_name and (theme_name in Constants.GTK_DARK_THEMES or "dark" in theme_name.lower()) # GoGoGo config = configparser.ConfigParser() config.read(os.path.expanduser(Constants.GTK_SETTINGS_INI_PATH)) |