Skip to content

Commit

Permalink
Fix TabContainer's font_hovered_color theme property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ymanawat committed Aug 30, 2023
1 parent 6da4ad1 commit d7bf05b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/tab_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void TabContainer::_update_theme_item_cache() {
theme_cache.drop_mark_color = get_theme_color(SNAME("drop_mark_color"));

theme_cache.font_selected_color = get_theme_color(SNAME("font_selected_color"));
theme_cache.font_hovered_color = get_theme_color(SNAME("font_hovered_color"));
theme_cache.font_unselected_color = get_theme_color(SNAME("font_unselected_color"));
theme_cache.font_disabled_color = get_theme_color(SNAME("font_disabled_color"));
theme_cache.font_outline_color = get_theme_color(SNAME("font_outline_color"));
Expand Down Expand Up @@ -240,6 +241,7 @@ void TabContainer::_on_theme_changed() {
tab_bar->add_theme_color_override(SNAME("drop_mark_color"), theme_cache.drop_mark_color);

tab_bar->add_theme_color_override(SNAME("font_selected_color"), theme_cache.font_selected_color);
tab_bar->add_theme_color_override(SNAME("font_hovered_color"), theme_cache.font_hovered_color);
tab_bar->add_theme_color_override(SNAME("font_unselected_color"), theme_cache.font_unselected_color);
tab_bar->add_theme_color_override(SNAME("font_disabled_color"), theme_cache.font_disabled_color);
tab_bar->add_theme_color_override(SNAME("font_outline_color"), theme_cache.font_outline_color);
Expand Down
1 change: 1 addition & 0 deletions scene/gui/tab_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class TabContainer : public Container {
Color drop_mark_color;

Color font_selected_color;
Color font_hovered_color;
Color font_unselected_color;
Color font_disabled_color;
Color font_outline_color;
Expand Down

0 comments on commit d7bf05b

Please sign in to comment.