mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Improve appearance of the editor Debugger bottom panel menu
- Make the Debugger bottom panel menu more prominent when there are errors or warnings by adjusting the text color. - Add some spacing to the right of the error/warning icon for better visual appearance.
This commit is contained in:
parent
435d50bf0f
commit
bb681ef9f2
2 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "editor/debugger/editor_debugger_node.h"
|
||||
#include "editor/debugger/editor_debugger_server.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/fileserver/editor_file_server.h"
|
||||
#include "scene/gui/menu_button.h"
|
||||
|
||||
|
@ -52,6 +53,8 @@ DebuggerEditorPlugin::DebuggerEditorPlugin(EditorNode *p_editor, MenuButton *p_d
|
|||
|
||||
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("hseparation", 6 * EDSCALE);
|
||||
debugger->set_tool_button(db);
|
||||
|
||||
// Main editor debug menu.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue