summaryrefslogtreecommitdiffstats
path: root/editor/project_manager/project_dialog.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-05-14 15:57:29 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-06-18 17:24:27 +0200
commitd519715d94dc1062addcfc8efad47abb494fa4c5 (patch)
treef0a07687df7c9ce6f6d31874a44a4e0dedc836f9 /editor/project_manager/project_dialog.cpp
parentb435551682f93cf49f606d260b28e13ff5526beb (diff)
downloadredot-engine-d519715d94dc1062addcfc8efad47abb494fa4c5.tar.gz
[Scene] Add `SceneStringNames::font(_size/_color)`
Diffstat (limited to 'editor/project_manager/project_dialog.cpp')
-rw-r--r--editor/project_manager/project_dialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/project_manager/project_dialog.cpp b/editor/project_manager/project_dialog.cpp
index 99aa83a09c..90424aa2b8 100644
--- a/editor/project_manager/project_dialog.cpp
+++ b/editor/project_manager/project_dialog.cpp
@@ -54,15 +54,15 @@ void ProjectDialog::_set_message(const String &p_msg, MessageType p_type, InputT
Ref<Texture2D> new_icon;
switch (p_type) {
case MESSAGE_ERROR: {
- msg->add_theme_color_override("font_color", get_theme_color(SNAME("error_color"), EditorStringName(Editor)));
+ msg->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("error_color"), EditorStringName(Editor)));
new_icon = get_editor_theme_icon(SNAME("StatusError"));
} break;
case MESSAGE_WARNING: {
- msg->add_theme_color_override("font_color", get_theme_color(SNAME("warning_color"), EditorStringName(Editor)));
+ msg->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("warning_color"), EditorStringName(Editor)));
new_icon = get_editor_theme_icon(SNAME("StatusWarning"));
} break;
case MESSAGE_SUCCESS: {
- msg->add_theme_color_override("font_color", get_theme_color(SNAME("success_color"), EditorStringName(Editor)));
+ msg->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("success_color"), EditorStringName(Editor)));
new_icon = get_editor_theme_icon(SNAME("StatusSuccess"));
} break;
}