Tweak the "Changes may be lost!" text color to match the icon's color

This commit is contained in:
Hugo Locurcio 2020-02-09 22:22:46 +01:00
parent d617df5f34
commit a0c35b4d0d
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -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");