From cf0dd55a0f38a58f4489f582678e5351c0af19bc Mon Sep 17 00:00:00 2001 From: Aleksander Date: Sun, 17 Aug 2025 21:03:17 +0200 Subject: [PATCH] wgui: make component names PascalCase --- uidev/assets/gui/various_widgets.xml | 34 ++++++++++++++-------------- wgui/src/parser/mod.rs | 6 ++--- wlx-overlay-s/src/assets/gui/bar.xml | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/uidev/assets/gui/various_widgets.xml b/uidev/assets/gui/various_widgets.xml index 1f86bba1..d4c4c4ff 100644 --- a/uidev/assets/gui/various_widgets.xml +++ b/uidev/assets/gui/various_widgets.xml @@ -11,17 +11,17 @@
@@ -54,13 +54,13 @@
@@ -69,13 +69,13 @@
diff --git a/wgui/src/parser/mod.rs b/wgui/src/parser/mod.rs index 3eb2d149..d8722564 100644 --- a/wgui/src/parser/mod.rs +++ b/wgui/src/parser/mod.rs @@ -660,13 +660,13 @@ fn parse_child<'a, U1, U2>( "sprite" => { new_widget_id = Some(parse_widget_sprite(file, ctx, child_node, parent_id)?); } - "button" => { + "Button" => { new_widget_id = Some(parse_component_button(file, ctx, child_node, parent_id)?); } - "slider" => { + "Slider" => { new_widget_id = Some(parse_component_slider(file, ctx, child_node, parent_id)?); } - "check_box" => { + "CheckBox" => { new_widget_id = Some(parse_component_checkbox(file, ctx, child_node, parent_id)?); } "" => { /* ignore */ } diff --git a/wlx-overlay-s/src/assets/gui/bar.xml b/wlx-overlay-s/src/assets/gui/bar.xml index 263448cf..58b58368 100644 --- a/wlx-overlay-s/src/assets/gui/bar.xml +++ b/wlx-overlay-s/src/assets/gui/bar.xml @@ -21,7 +21,7 @@