Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix `TabContainer`'s popup button not updating on theme change

Michael Alexsandercfd0e60e34e5
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index c610c766888..de85fcabdde 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -253,6 +253,10 @@ void TabContainer::_on_theme_changed() {
tab_bar->end_bulk_theme_override();
+ if (popup_button) {
+ popup_button->set_button_icon(theme_cache.menu_icon);
+ }
+
_update_margins();
if (get_tab_count() > 0) {
_repaint();