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/window_wrapper.cpp | |
parent | b435551682f93cf49f606d260b28e13ff5526beb (diff) | |
download | redot-engine-d519715d94dc1062addcfc8efad47abb494fa4c5.tar.gz |
[Scene] Add `SceneStringNames::font(_size/_color)`
Diffstat (limited to 'editor/window_wrapper.cpp')
-rw-r--r-- | editor/window_wrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/window_wrapper.cpp b/editor/window_wrapper.cpp index b75d641509..9496ba016c 100644 --- a/editor/window_wrapper.cpp +++ b/editor/window_wrapper.cpp @@ -348,7 +348,7 @@ void ScreenSelect::_build_advanced_menu() { } // Populate screen list. - const real_t height = real_t(get_theme_font_size("font_size")) * 1.5; + const real_t height = real_t(get_theme_font_size(SceneStringName(font_size))) * 1.5; int current_screen = get_window()->get_current_screen(); for (int i = 0; i < DisplayServer::get_singleton()->get_screen_count(); i++) { @@ -365,7 +365,7 @@ void ScreenSelect::_build_advanced_menu() { if (i == current_screen) { Color accent_color = get_theme_color("accent_color", EditorStringName(Editor)); - button->add_theme_color_override("font_color", accent_color); + button->add_theme_color_override(SceneStringName(font_color), accent_color); } button->connect(SceneStringName(pressed), callable_mp(this, &ScreenSelect::_emit_screen_signal).bind(i)); @@ -393,7 +393,7 @@ void ScreenSelect::_notification(int p_what) { set_icon(get_editor_theme_icon("MakeFloating")); popup_background->add_theme_style_override(SceneStringName(panel), get_theme_stylebox("PanelForeground", EditorStringName(EditorStyles))); - const real_t popup_height = real_t(get_theme_font_size("font_size")) * 2.0; + const real_t popup_height = real_t(get_theme_font_size(SceneStringName(font_size))) * 2.0; popup->set_min_size(Size2(0, popup_height * 3)); } break; } |