Fix accessing editor theme items throughout the UI
This also exposes `EditorInterface::get_editor_theme`.
This commit is contained in:
parent
6e11fcb92c
commit
8ecc0c4f47
55 changed files with 227 additions and 190 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue