summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-09-13 13:14:07 +0200
committerYuri Sizov <yuris@humnom.net>2023-09-15 14:51:01 +0200
commit8ecc0c4f47f78874d94ad701cea4ea0173bddbb2 (patch)
tree6230a9b3228bf84812d054f16e728bb9b4a31f34 /editor/plugins/script_editor_plugin.cpp
parent6e11fcb92cda87322ab91f5a53e8a230ff1b994f (diff)
downloadredot-engine-8ecc0c4f47f78874d94ad701cea4ea0173bddbb2.tar.gz
Fix accessing editor theme items throughout the UI
This also exposes `EditorInterface::get_editor_theme`.
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 2fe607a08c..89d9b0d023 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -3876,7 +3876,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
filename = memnew(Label);
filename->set_clip_text(true);
filename->set_h_size_flags(SIZE_EXPAND_FILL);
- filename->add_theme_style_override("normal", EditorNode::get_singleton()->get_gui_base()->get_theme_stylebox(SNAME("normal"), SNAME("LineEdit")));
+ filename->add_theme_style_override("normal", EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SNAME("normal"), SNAME("LineEdit")));
buttons_hbox->add_child(filename);
members_overview_alphabeta_sort_button = memnew(Button);