You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Bring TabBar to full parity with the TabContainer implementation.
This commit is contained in:
@@ -3469,7 +3469,7 @@ void ThemeEditor::_add_preview_tab(ThemeEditorPreview *p_preview_tab, const Stri
|
||||
|
||||
preview_tabs->add_tab(p_preview_name, p_icon);
|
||||
preview_tabs_content->add_child(p_preview_tab);
|
||||
preview_tabs->set_tab_right_button(preview_tabs->get_tab_count() - 1, EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("close"), SNAME("TabBar")));
|
||||
preview_tabs->set_tab_button_icon(preview_tabs->get_tab_count() - 1, EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("close"), SNAME("TabBar")));
|
||||
p_preview_tab->connect("control_picked", callable_mp(this, &ThemeEditor::_preview_control_picked));
|
||||
|
||||
preview_tabs->set_current_tab(preview_tabs->get_tab_count() - 1);
|
||||
@@ -3600,7 +3600,7 @@ ThemeEditor::ThemeEditor() {
|
||||
preview_tabs->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
preview_tabbar_hb->add_child(preview_tabs);
|
||||
preview_tabs->connect("tab_changed", callable_mp(this, &ThemeEditor::_change_preview_tab));
|
||||
preview_tabs->connect("tab_rmb_clicked", callable_mp(this, &ThemeEditor::_remove_preview_tab));
|
||||
preview_tabs->connect("tab_button_pressed", callable_mp(this, &ThemeEditor::_remove_preview_tab));
|
||||
|
||||
HBoxContainer *add_preview_button_hb = memnew(HBoxContainer);
|
||||
preview_tabbar_hb->add_child(add_preview_button_hb);
|
||||
|
||||
Reference in New Issue
Block a user