aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/util
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/util')
-rw-r--r--main/src/ui/util/helper.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala
index f1355b39..a2dde504 100644
--- a/main/src/ui/util/helper.vala
+++ b/main/src/ui/util/helper.vala
@@ -119,8 +119,8 @@ public static void force_error_color(Gtk.Widget widget, string selector = "*") {
}
public static bool is_dark_theme(Gtk.Widget widget) {
- Gdk.RGBA bg = widget.get_style_context().get_background_color(StateFlags.NORMAL);
- return (bg.red < 0.5 && bg.green < 0.5 && bg.blue < 0.5);
+ Gdk.RGBA bg = widget.get_style_context().get_color(StateFlags.NORMAL);
+ return (bg.red > 0.5 && bg.green > 0.5 && bg.blue > 0.5);
}
public static bool is_24h_format() {