From 31b36734610d868e1c8e1592bbde76f2e2c4d226 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 18 Feb 2022 21:54:31 +0100 Subject: [PATCH] qt: follow-up changing light/dark theme at runtime follow-up 11a04c0d72e92089a0ae1443b8ac2ed37b4b9b19 --- electrum/gui/qt/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum/gui/qt/util.py b/electrum/gui/qt/util.py index 7c8945a59..2468dcb50 100644 --- a/electrum/gui/qt/util.py +++ b/electrum/gui/qt/util.py @@ -963,8 +963,7 @@ class ColorScheme: @staticmethod def update_from_widget(widget, force_dark=False): - if force_dark or ColorScheme.has_dark_background(widget): - ColorScheme.dark_scheme = True + ColorScheme.dark_scheme = bool(force_dark or ColorScheme.has_dark_background(widget)) class AcceptFileDragDrop: