mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Fix spacing between icon and "Output" button
This commit is contained in:
		
							parent
							
								
									202e4b2c1e
								
							
						
					
					
						commit
						2883a40aa1
					
				
					 3 changed files with 5 additions and 2 deletions
				
			
		|  | @ -7824,6 +7824,7 @@ EditorNode::EditorNode() { | ||||||
| 
 | 
 | ||||||
| 	log = memnew(EditorLog); | 	log = memnew(EditorLog); | ||||||
| 	Button *output_button = add_bottom_panel_item(TTR("Output"), log); | 	Button *output_button = add_bottom_panel_item(TTR("Output"), log); | ||||||
|  | 	output_button->set_theme_type_variation("BottomPanelButton"); | ||||||
| 	log->set_tool_button(output_button); | 	log->set_tool_button(output_button); | ||||||
| 
 | 
 | ||||||
| 	center_split->connect("resized", callable_mp(this, &EditorNode::_vp_resized)); | 	center_split->connect("resized", callable_mp(this, &EditorNode::_vp_resized)); | ||||||
|  |  | ||||||
|  | @ -1453,6 +1453,9 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { | ||||||
| 	theme->set_stylebox("panel", "TabContainer", style_content_panel); | 	theme->set_stylebox("panel", "TabContainer", style_content_panel); | ||||||
| 
 | 
 | ||||||
| 	// Bottom 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<StyleBoxFlat> style_bottom_panel = style_content_panel->duplicate(); | 	Ref<StyleBoxFlat> style_bottom_panel = style_content_panel->duplicate(); | ||||||
| 	style_bottom_panel->set_corner_radius_all(corner_radius * EDSCALE); | 	style_bottom_panel->set_corner_radius_all(corner_radius * EDSCALE); | ||||||
| 	theme->set_stylebox("BottomPanel", "EditorStyles", style_bottom_panel); | 	theme->set_stylebox("BottomPanel", "EditorStyles", style_bottom_panel); | ||||||
|  |  | ||||||
|  | @ -54,8 +54,7 @@ DebuggerEditorPlugin::DebuggerEditorPlugin(PopupMenu *p_debug_menu) { | ||||||
| 
 | 
 | ||||||
| 	EditorDebuggerNode *debugger = memnew(EditorDebuggerNode); | 	EditorDebuggerNode *debugger = memnew(EditorDebuggerNode); | ||||||
| 	Button *db = EditorNode::get_singleton()->add_bottom_panel_item(TTR("Debugger"), debugger); | 	Button *db = EditorNode::get_singleton()->add_bottom_panel_item(TTR("Debugger"), debugger); | ||||||
| 	// Add separation for the warning/error icon that is displayed later.
 | 	db->set_theme_type_variation("BottomPanelButton"); | ||||||
| 	db->add_theme_constant_override("h_separation", 6 * EDSCALE); |  | ||||||
| 	debugger->set_tool_button(db); | 	debugger->set_tool_button(db); | ||||||
| 
 | 
 | ||||||
| 	// Main editor debug menu.
 | 	// Main editor debug menu.
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael Alexsander
						Michael Alexsander