From fd65104ad5429bd1da6e15a6429e1b1445883f07 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 10 Feb 2020 10:36:21 +0100 Subject: [PATCH] Tweak the "Changes may be lost!" text color to match the icon's color --- editor/inspector_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index a2ef34eaaaf..d39a887f6d1 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -340,6 +340,7 @@ void InspectorDock::_notification(int p_what) { history_menu->set_icon(get_icon("History", "EditorIcons")); object_menu->set_icon(get_icon("Tools", "EditorIcons")); warning->set_icon(get_icon("NodeWarning", "EditorIcons")); + warning->add_color_override("font_color", get_color("warning_color", "Editor")); } break; } } @@ -581,6 +582,7 @@ InspectorDock::InspectorDock(EditorNode *p_editor, EditorData &p_editor_data) { add_child(warning); warning->set_text(TTR("Changes may be lost!")); warning->set_icon(get_icon("NodeWarning", "EditorIcons")); + warning->add_color_override("font_color", get_color("warning_color", "Editor")); warning->set_clip_text(true); warning->hide(); warning->connect("pressed", this, "_warning_pressed");