Merge pull request #49642 from Calinou/tweak-changes-may-be-lost-color-3.x
Tweak the "Changes may be lost!" text color to match the icon's color (3.x)
This commit is contained in:
commit
a373f1c0e8
1 changed files with 2 additions and 0 deletions
|
@ -340,6 +340,7 @@ void InspectorDock::_notification(int p_what) {
|
||||||
history_menu->set_icon(get_icon("History", "EditorIcons"));
|
history_menu->set_icon(get_icon("History", "EditorIcons"));
|
||||||
object_menu->set_icon(get_icon("Tools", "EditorIcons"));
|
object_menu->set_icon(get_icon("Tools", "EditorIcons"));
|
||||||
warning->set_icon(get_icon("NodeWarning", "EditorIcons"));
|
warning->set_icon(get_icon("NodeWarning", "EditorIcons"));
|
||||||
|
warning->add_color_override("font_color", get_color("warning_color", "Editor"));
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -581,6 +582,7 @@ InspectorDock::InspectorDock(EditorNode *p_editor, EditorData &p_editor_data) {
|
||||||
add_child(warning);
|
add_child(warning);
|
||||||
warning->set_text(TTR("Changes may be lost!"));
|
warning->set_text(TTR("Changes may be lost!"));
|
||||||
warning->set_icon(get_icon("NodeWarning", "EditorIcons"));
|
warning->set_icon(get_icon("NodeWarning", "EditorIcons"));
|
||||||
|
warning->add_color_override("font_color", get_color("warning_color", "Editor"));
|
||||||
warning->set_clip_text(true);
|
warning->set_clip_text(true);
|
||||||
warning->hide();
|
warning->hide();
|
||||||
warning->connect("pressed", this, "_warning_pressed");
|
warning->connect("pressed", this, "_warning_pressed");
|
||||||
|
|
Loading…
Reference in a new issue