You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix accessing editor theme items throughout the UI
This also exposes `EditorInterface::get_editor_theme`.
This commit is contained in:
@@ -385,7 +385,7 @@ void ScreenSelect::_notification(int p_what) {
|
||||
connect("gui_input", callable_mp(this, &ScreenSelect::_handle_mouse_shortcut));
|
||||
} break;
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
set_icon(EditorNode::get_singleton()->get_gui_base()->get_editor_theme_icon("MakeFloating"));
|
||||
set_icon(get_editor_theme_icon("MakeFloating"));
|
||||
popup_background->add_theme_style_override("panel", get_theme_stylebox("PanelForeground", EditorStringName(EditorStyles)));
|
||||
|
||||
const real_t popup_height = real_t(get_theme_font_size("font_size")) * 2.0;
|
||||
|
||||
Reference in New Issue
Block a user