Skip to content

Commit e45cc68

Browse files
committed
Merge pull request #106746 from HolonProduction/tab-container-material-fix
GUI: Use `TabContainer` material for internal `TabBar`
2 parents 5935356 + f6e26d0 commit e45cc68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/gui/tab_container.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,7 @@ TabContainer::TabContainer() {
11731173
tab_bar = memnew(TabBar);
11741174
SET_DRAG_FORWARDING_GCDU(tab_bar, TabContainer);
11751175
add_child(tab_bar, false, INTERNAL_MODE_FRONT);
1176+
tab_bar->set_use_parent_material(true);
11761177
tab_bar->set_anchors_and_offsets_preset(Control::PRESET_TOP_WIDE);
11771178
tab_bar->connect("tab_changed", callable_mp(this, &TabContainer::_on_tab_changed));
11781179
tab_bar->connect("tab_clicked", callable_mp(this, &TabContainer::_on_tab_clicked));

0 commit comments

Comments
 (0)