diff options
Diffstat (limited to 'scene/gui/tab_container.cpp')
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 208cb29772..f4f7183475 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -146,6 +146,7 @@ void TabContainer::_update_theme_item_cache() { // TabBar overrides. theme_cache.icon_separation = get_theme_constant(SNAME("icon_separation")); + theme_cache.icon_max_width = get_theme_constant(SNAME("icon_max_width")); theme_cache.outline_size = get_theme_constant(SNAME("outline_size")); theme_cache.tab_unselected_style = get_theme_stylebox(SNAME("tab_unselected")); @@ -245,6 +246,7 @@ void TabContainer::_on_theme_changed() { tab_bar->add_theme_font_size_override(SNAME("font_size"), theme_cache.tab_font_size); tab_bar->add_theme_constant_override(SNAME("h_separation"), theme_cache.icon_separation); + tab_bar->add_theme_constant_override(SNAME("icon_max_width"), theme_cache.icon_max_width); tab_bar->add_theme_constant_override(SNAME("outline_size"), theme_cache.outline_size); _update_margins(); |