wgui: use dark mode

This commit is contained in:
Aleksander
2025-09-20 13:32:07 +02:00
parent 0f82fb4144
commit aadf11590e
8 changed files with 23 additions and 7 deletions

View File

@@ -21,7 +21,13 @@ impl TestbedAny {
pub fn new(name: &str, listeners: &mut EventListenerCollection<(), ()>) -> anyhow::Result<Self> {
let path = format!("gui/{name}.xml");
let globals = WguiGlobals::new(Box::new(assets::Asset {}), Default::default())?;
let globals = WguiGlobals::new(
Box::new(assets::Asset {}),
wgui::globals::Defaults {
dark_mode: true,
text_color: wgui::drawing::Color::new(1.0, 1.0, 1.0, 1.0),
},
)?;
let (layout, state) = wgui::parser::new_layout_from_assets(
listeners,