diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 0e4a6eeb3a7..a8187c27b6e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -7838,6 +7838,7 @@ EditorNode::EditorNode() { log = memnew(EditorLog); Button *output_button = add_bottom_panel_item(TTR("Output"), log); + output_button->set_theme_type_variation("BottomPanelButton"); log->set_tool_button(output_button); center_split->connect("resized", callable_mp(this, &EditorNode::_vp_resized)); diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index cbf536899a8..3302b1dc41b 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1453,6 +1453,9 @@ Ref create_editor_theme(const Ref p_theme) { theme->set_stylebox("panel", "TabContainer", style_content_panel); // Bottom panel. + theme->set_type_variation("BottomPanelButton", "Button"); + // Add separation for the warning/error icon. + theme->set_constant("h_separation", "BottomPanelButton", 6 * EDSCALE); Ref style_bottom_panel = style_content_panel->duplicate(); style_bottom_panel->set_corner_radius_all(corner_radius * EDSCALE); theme->set_stylebox("BottomPanel", "EditorStyles", style_bottom_panel); diff --git a/editor/plugins/debugger_editor_plugin.cpp b/editor/plugins/debugger_editor_plugin.cpp index 3068ad3f932..3c9bc991d3f 100644 --- a/editor/plugins/debugger_editor_plugin.cpp +++ b/editor/plugins/debugger_editor_plugin.cpp @@ -54,8 +54,7 @@ DebuggerEditorPlugin::DebuggerEditorPlugin(PopupMenu *p_debug_menu) { EditorDebuggerNode *debugger = memnew(EditorDebuggerNode); Button *db = EditorNode::get_singleton()->add_bottom_panel_item(TTR("Debugger"), debugger); - // Add separation for the warning/error icon that is displayed later. - db->add_theme_constant_override("h_separation", 6 * EDSCALE); + db->set_theme_type_variation("BottomPanelButton"); debugger->set_tool_button(db); // Main editor debug menu.