diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-05-14 15:57:29 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-06-18 17:24:27 +0200 |
commit | d519715d94dc1062addcfc8efad47abb494fa4c5 (patch) | |
tree | f0a07687df7c9ce6f6d31874a44a4e0dedc836f9 /editor/inspector_dock.cpp | |
parent | b435551682f93cf49f606d260b28e13ff5526beb (diff) | |
download | redot-engine-d519715d94dc1062addcfc8efad47abb494fa4c5.tar.gz |
[Scene] Add `SceneStringNames::font(_size/_color)`
Diffstat (limited to 'editor/inspector_dock.cpp')
-rw-r--r-- | editor/inspector_dock.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index ad2e16636b..43b5cb711e 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -451,10 +451,10 @@ void InspectorDock::_notification(int p_what) { search->set_right_icon(get_editor_theme_icon(SNAME("Search"))); if (info_is_warning) { info->set_icon(get_editor_theme_icon(SNAME("NodeWarning"))); - info->add_theme_color_override("font_color", get_theme_color(SNAME("warning_color"), EditorStringName(Editor))); + info->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("warning_color"), EditorStringName(Editor))); } else { info->set_icon(get_editor_theme_icon(SNAME("NodeInfo"))); - info->add_theme_color_override("font_color", get_theme_color(SNAME("font_color"), EditorStringName(Editor))); + info->add_theme_color_override(SceneStringName(font_color), get_theme_color(SceneStringName(font_color), EditorStringName(Editor))); } } break; } @@ -481,10 +481,10 @@ void InspectorDock::set_info(const String &p_button_text, const String &p_messag if (info_is_warning) { info->set_icon(get_editor_theme_icon(SNAME("NodeWarning"))); - info->add_theme_color_override("font_color", get_theme_color(SNAME("warning_color"), EditorStringName(Editor))); + info->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("warning_color"), EditorStringName(Editor))); } else { info->set_icon(get_editor_theme_icon(SNAME("NodeInfo"))); - info->add_theme_color_override("font_color", get_theme_color(SNAME("font_color"), EditorStringName(Editor))); + info->add_theme_color_override(SceneStringName(font_color), get_theme_color(SceneStringName(font_color), EditorStringName(Editor))); } if (!p_button_text.is_empty() && !p_message.is_empty()) { |