diff --git a/editor/gui/editor_scene_tabs.cpp b/editor/gui/editor_scene_tabs.cpp index 4862b3436e18..e3cfbb024798 100644 --- a/editor/gui/editor_scene_tabs.cpp +++ b/editor/gui/editor_scene_tabs.cpp @@ -55,7 +55,10 @@ void EditorSceneTabs::_notification(int p_what) { scene_tab_add->set_icon(get_editor_theme_icon(SNAME("Add"))); scene_tab_add->add_theme_color_override("icon_normal_color", Color(0.6f, 0.6f, 0.6f, 0.8f)); + [[fallthrough]]; + } + case NOTIFICATION_READY: { scene_tab_add_ph->set_custom_minimum_size(scene_tab_add->get_minimum_size()); } break; @@ -413,13 +416,13 @@ EditorSceneTabs::EditorSceneTabs() { scene_tab_add = memnew(Button); scene_tab_add->set_flat(true); + scene_tab_add->set_theme_type_variation("FlatMenuButton"); scene_tab_add->set_tooltip_text(TTR("Add a new scene.")); scene_tabs->add_child(scene_tab_add); scene_tab_add->connect(SceneStringName(pressed), callable_mp(EditorNode::get_singleton(), &EditorNode::trigger_menu_option).bind(EditorNode::FILE_NEW_SCENE, false)); scene_tab_add_ph = memnew(Control); scene_tab_add_ph->set_mouse_filter(Control::MOUSE_FILTER_IGNORE); - scene_tab_add_ph->set_custom_minimum_size(scene_tab_add->get_minimum_size()); tabbar_container->add_child(scene_tab_add_ph); // On-hover tab preview.