From d7bf05b4904cb8eca0dfb1d027390a964379fccf Mon Sep 17 00:00:00 2001 From: Yogendra Manawat Date: Sun, 27 Aug 2023 17:58:24 +0530 Subject: [PATCH] Fix TabContainer's font_hovered_color theme property --- scene/gui/tab_container.cpp | 2 ++ scene/gui/tab_container.h | 1 + 2 files changed, 3 insertions(+) diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index a6be8f29488..28bf58ca04d 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -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")); @@ -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); diff --git a/scene/gui/tab_container.h b/scene/gui/tab_container.h index 711b57e4211..c7a218c290e 100644 --- a/scene/gui/tab_container.h +++ b/scene/gui/tab_container.h @@ -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;