mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
GUI: Use TabContainer material for internal TabBar
This commit is contained in:
parent
4a44078451
commit
f6e26d01d5
1 changed files with 1 additions and 0 deletions
|
|
@ -1167,6 +1167,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