diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-13 13:14:07 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-15 14:51:01 +0200 |
commit | 8ecc0c4f47f78874d94ad701cea4ea0173bddbb2 (patch) | |
tree | 6230a9b3228bf84812d054f16e728bb9b4a31f34 /modules/multiplayer/editor/replication_editor.cpp | |
parent | 6e11fcb92cda87322ab91f5a53e8a230ff1b994f (diff) | |
download | redot-engine-8ecc0c4f47f78874d94ad701cea4ea0173bddbb2.tar.gz |
Fix accessing editor theme items throughout the UI
This also exposes `EditorInterface::get_editor_theme`.
Diffstat (limited to 'modules/multiplayer/editor/replication_editor.cpp')
-rw-r--r-- | modules/multiplayer/editor/replication_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/multiplayer/editor/replication_editor.cpp b/modules/multiplayer/editor/replication_editor.cpp index 0051d82e99..1c7546436b 100644 --- a/modules/multiplayer/editor/replication_editor.cpp +++ b/modules/multiplayer/editor/replication_editor.cpp @@ -359,7 +359,7 @@ void ReplicationEditor::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { - add_theme_style_override("panel", EditorNode::get_singleton()->get_gui_base()->get_theme_stylebox(SNAME("panel"), SNAME("Panel"))); + add_theme_style_override("panel", EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("panel"), SNAME("Panel"))); add_pick_button->set_icon(get_theme_icon(SNAME("Add"), EditorStringName(EditorIcons))); pin->set_icon(get_theme_icon(SNAME("Pin"), EditorStringName(EditorIcons))); } break; |