summaryrefslogtreecommitdiffstats
path: root/modules/openxr/editor/openxr_interaction_profile_editor.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-05-14 15:50:53 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-05-30 22:54:50 +0200
commit926afccbd88c8550964daa73ab3de2c5ab30aa80 (patch)
treecb1ed5b8512fb735d337dcf88fd883861b8f2bf4 /modules/openxr/editor/openxr_interaction_profile_editor.cpp
parent755a0efbb66ce40ec7399103b34094e734bf09bf (diff)
downloadredot-engine-926afccbd88c8550964daa73ab3de2c5ab30aa80.tar.gz
[Scene] Add `SceneStringNames::panel`
Diffstat (limited to 'modules/openxr/editor/openxr_interaction_profile_editor.cpp')
-rw-r--r--modules/openxr/editor/openxr_interaction_profile_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/openxr/editor/openxr_interaction_profile_editor.cpp b/modules/openxr/editor/openxr_interaction_profile_editor.cpp
index ab36c0744e..651171358c 100644
--- a/modules/openxr/editor/openxr_interaction_profile_editor.cpp
+++ b/modules/openxr/editor/openxr_interaction_profile_editor.cpp
@@ -285,7 +285,7 @@ void OpenXRInteractionProfileEditor::_update_interaction_profile() {
PanelContainer *panel = memnew(PanelContainer);
panel->set_v_size_flags(Control::SIZE_EXPAND_FILL);
main_hb->add_child(panel);
- panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("panel"), SNAME("TabContainer")));
+ panel->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SceneStringName(panel), SNAME("TabContainer")));
VBoxContainer *container = memnew(VBoxContainer);
panel->add_child(container);
@@ -310,7 +310,7 @@ void OpenXRInteractionProfileEditor::_theme_changed() {
for (int i = 0; i < main_hb->get_child_count(); i++) {
Control *panel = Object::cast_to<Control>(main_hb->get_child(i));
if (panel) {
- panel->add_theme_style_override("panel", get_theme_stylebox(SNAME("panel"), SNAME("TabContainer")));
+ panel->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SceneStringName(panel), SNAME("TabContainer")));
}
}
}