Skip to content

Commit

Permalink
Fixed foreground color for type widget
Browse files Browse the repository at this point in the history
  • Loading branch information
r37r05p3C7 committed Feb 14, 2024
1 parent 95106b9 commit f92c2d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit f92c2d2

Please sign in to comment.