summaryrefslogtreecommitdiffstats
path: root/editor/engine_update_label.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/engine_update_label.cpp
parentb435551682f93cf49f606d260b28e13ff5526beb (diff)
downloadredot-engine-d519715d94dc1062addcfc8efad47abb494fa4c5.tar.gz
[Scene] Add `SceneStringNames::font(_size/_color)`
Diffstat (limited to 'editor/engine_update_label.cpp')
-rw-r--r--editor/engine_update_label.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/engine_update_label.cpp b/editor/engine_update_label.cpp
index c9dfe1f521..958093410a 100644
--- a/editor/engine_update_label.cpp
+++ b/editor/engine_update_label.cpp
@@ -166,7 +166,7 @@ void EngineUpdateLabel::_set_message(const String &p_message, const Color &p_col
if (is_disabled()) {
add_theme_color_override("font_disabled_color", p_color);
} else {
- add_theme_color_override("font_color", p_color);
+ add_theme_color_override(SceneStringName(font_color), p_color);
}
set_text(p_message);
}
@@ -264,7 +264,7 @@ void EngineUpdateLabel::_notification(int p_what) {
} break;
case NOTIFICATION_THEME_CHANGED: {
- theme_cache.default_color = get_theme_color("font_color", "Button");
+ theme_cache.default_color = get_theme_color(SceneStringName(font_color), "Button");
theme_cache.disabled_color = get_theme_color("font_disabled_color", "Button");
theme_cache.error_color = get_theme_color("error_color", EditorStringName(Editor));
theme_cache.update_color = get_theme_color("warning_color", EditorStringName(Editor));