From f92c2d2bd6721b0956b72d8f7d6fbf5785f33d60 Mon Sep 17 00:00:00 2001 From: r37r05p3C7 <153987701+r37r05p3C7@users.noreply.github.com> Date: Wed, 14 Feb 2024 03:20:42 +0200 Subject: [PATCH] Fixed foreground color for type widget --- modules/gui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gui.py b/modules/gui.py index b425bb7..8871abe 100644 --- a/modules/gui.py +++ b/modules/gui.py @@ -1060,6 +1060,7 @@ def get_type_label_width(self): def draw_type_widget(self, type: Type, wide=True, align=False): quick_filter = globals.settings.quick_filters self.begin_framed_text(type.color, interaction=quick_filter) + imgui.push_style_color(imgui.COLOR_TEXT, 1.0, 1.0, 1.0, 1.0) if wide: x_padding = 4 backup_y_padding = imgui.style.frame_padding.y @@ -1076,6 +1077,7 @@ def draw_type_widget(self, type: Type, wide=True, align=False): flt = Filter(FilterMode.Type) flt.match = type self.filters.append(flt) + imgui.pop_style_color() self.end_framed_text(interaction=quick_filter) def draw_tag_widget(self, tag: Tag, quick_filter=True, change_highlight=True):