dash-frontend: Use native <Button>s, children support
This commit is contained in:
@@ -3,7 +3,7 @@ use glam::Vec2;
|
||||
use wgui::{
|
||||
event::EventListenerCollection,
|
||||
globals::WguiGlobals,
|
||||
layout::Layout,
|
||||
layout::{Layout, LayoutParams},
|
||||
parser::{ParseDocumentParams, ParserState},
|
||||
};
|
||||
|
||||
@@ -27,6 +27,7 @@ impl TestbedAny {
|
||||
path: &path,
|
||||
extra: Default::default(),
|
||||
},
|
||||
&LayoutParams::default(),
|
||||
)?;
|
||||
Ok(Self { layout, state })
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ use wgui::{
|
||||
event::EventListenerCollection,
|
||||
globals::WguiGlobals,
|
||||
i18n::Translation,
|
||||
layout::{Layout, Widget},
|
||||
layout::{Layout, LayoutParams, Widget},
|
||||
parser::{ParseDocumentExtra, ParseDocumentParams, ParserState},
|
||||
widget::{label::WidgetLabel, rectangle::WidgetRectangle},
|
||||
};
|
||||
@@ -81,6 +81,9 @@ impl TestbedGeneric {
|
||||
path: XML_PATH,
|
||||
extra,
|
||||
},
|
||||
&LayoutParams {
|
||||
resize_to_parent: true,
|
||||
},
|
||||
)?;
|
||||
|
||||
let label_cur_option = state.fetch_widget(&layout.state, "label_current_option")?;
|
||||
|
||||
Reference in New Issue
Block a user