diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-10 10:36:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 10:36:21 +0100 |
commit | 0e98841d60f3d7d82c44d90d88bf3cd33a8f2516 (patch) | |
tree | 2cbbb1ccbc0ea2a8e751e1b238b574de92bab2cf | |
parent | 354a94e8a8f67f9e79874a209c4c51e10faf18ee (diff) | |
parent | a0c35b4d0d543df0dca971164c41166a84429ee9 (diff) |
Merge pull request #36061 from Calinou/tweak-changes-may-be-lost-color
Tweak the "Changes may be lost!" text color to match the icon's color
-rw-r--r-- | editor/inspector_dock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index b65482cc6b..ecd1e341d1 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -337,6 +337,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; } } @@ -584,6 +585,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"); |