diff options
author | fiaxh <git@lightrise.org> | 2022-01-03 23:00:27 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-01-04 12:35:18 +0100 |
commit | 85f4bddf99f92647e67e7b69c1e1902730f5ea8f (patch) | |
tree | ca38b20e1edfbe8a7286ad5af60fe960838c728e /main/src/ui/util | |
parent | 07a05db26e1c2f4d7a2226e9d8ef62e6e421a4a1 (diff) | |
download | dino-85f4bddf99f92647e67e7b69c1e1902730f5ea8f.tar.gz dino-85f4bddf99f92647e67e7b69c1e1902730f5ea8f.zip |
Use opacity for "pending" and "edited" hints
Getting the dim-label color doesn't work without actually rendering it
Diffstat (limited to 'main/src/ui/util')
-rw-r--r-- | main/src/ui/util/helper.vala | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/main/src/ui/util/helper.vala b/main/src/ui/util/helper.vala index ecfb777d..c1c32048 100644 --- a/main/src/ui/util/helper.vala +++ b/main/src/ui/util/helper.vala @@ -161,13 +161,6 @@ public static Gdk.RGBA get_label_pango_color(Label label, string css_color) { return color_rgba; } -public static Gdk.RGBA get_label_pango_class_color(Label label, string css_class) { - label.get_style_context().add_class(css_class); - Gdk.RGBA color_rgba = label.get_style_context().get_color(StateFlags.NORMAL); - label.get_style_context().remove_class(css_class); - return color_rgba; -} - public static string rgba_to_hex(Gdk.RGBA rgba) { return "#%02x%02x%02x%02x".printf( (uint)(Math.round(rgba.red*255)), |