dash-frontend: Use native <Button>s, children support

This commit is contained in:
Aleksander
2025-09-13 12:49:36 +02:00
parent c2628c0a15
commit 9efe298f65
13 changed files with 117 additions and 82 deletions

View File

@@ -2,7 +2,7 @@ use glam::Vec2;
use wgui::{
event::EventListenerCollection,
globals::WguiGlobals,
layout::Layout,
layout::{Layout, LayoutParams},
parser::{ParseDocumentParams, ParserState},
};
@@ -30,6 +30,9 @@ impl Frontend {
path: "gui/dashboard.xml",
extra: Default::default(),
},
&LayoutParams {
resize_to_parent: true,
},
)?;
Ok(Self { layout, state })