You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Use the "warning" color for the "restart required" label
This makes the color match the warning icon placed besides the label.
This commit is contained in:
@@ -111,7 +111,7 @@ void ProjectSettingsEditor::_notification(int p_what) {
|
|||||||
restart_close_button->set_icon(get_icon("Close", "EditorIcons"));
|
restart_close_button->set_icon(get_icon("Close", "EditorIcons"));
|
||||||
restart_container->add_style_override("panel", get_stylebox("bg", "Tree"));
|
restart_container->add_style_override("panel", get_stylebox("bg", "Tree"));
|
||||||
restart_icon->set_texture(get_icon("StatusWarning", "EditorIcons"));
|
restart_icon->set_texture(get_icon("StatusWarning", "EditorIcons"));
|
||||||
restart_label->add_color_override("font_color", get_color("error_color", "Editor"));
|
restart_label->add_color_override("font_color", get_color("warning_color", "Editor"));
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_POPUP_HIDE: {
|
case NOTIFICATION_POPUP_HIDE: {
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ void EditorSettingsDialog::_update_icons() {
|
|||||||
restart_close_button->set_icon(get_icon("Close", "EditorIcons"));
|
restart_close_button->set_icon(get_icon("Close", "EditorIcons"));
|
||||||
restart_container->add_style_override("panel", get_stylebox("bg", "Tree"));
|
restart_container->add_style_override("panel", get_stylebox("bg", "Tree"));
|
||||||
restart_icon->set_texture(get_icon("StatusWarning", "EditorIcons"));
|
restart_icon->set_texture(get_icon("StatusWarning", "EditorIcons"));
|
||||||
restart_label->add_color_override("font_color", get_color("error_color", "Editor"));
|
restart_label->add_color_override("font_color", get_color("warning_color", "Editor"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorSettingsDialog::_update_shortcuts() {
|
void EditorSettingsDialog::_update_shortcuts() {
|
||||||
|
|||||||
Reference in New Issue
Block a user