mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #106746 from HolonProduction/tab-container-material-fix
GUI: Use `TabContainer` material for internal `TabBar`
This commit is contained in:
commit
e45cc68092
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue