Merge pull request #106746 from HolonProduction/tab-container-material-fix
GUI: Use `TabContainer` material for internal `TabBar`
This commit is contained in:
commit
e45cc68092
@ -1173,6 +1173,7 @@ TabContainer::TabContainer() {
|
||||
tab_bar = memnew(TabBar);
|
||||
SET_DRAG_FORWARDING_GCDU(tab_bar, TabContainer);
|
||||
add_child(tab_bar, false, INTERNAL_MODE_FRONT);
|
||||
tab_bar->set_use_parent_material(true);
|
||||
tab_bar->set_anchors_and_offsets_preset(Control::PRESET_TOP_WIDE);
|
||||
tab_bar->connect("tab_changed", callable_mp(this, &TabContainer::_on_tab_changed));
|
||||
tab_bar->connect("tab_clicked", callable_mp(this, &TabContainer::_on_tab_clicked));
|
||||
|
Loading…
x
Reference in New Issue
Block a user