From c32e3ef86e37fad3ea634d61d4c77659146c36c3 Mon Sep 17 00:00:00 2001 From: Aleksander Date: Sun, 12 Jul 2026 20:23:32 +0200 Subject: [PATCH] dash-frontend: fix more colors, wgui: fix possible flicker --- dash-frontend/assets/gui/tab/apps.xml | 2 +- dash-frontend/assets/gui/view/game_launcher.xml | 2 +- dash-frontend/src/views/game_cover.rs | 6 +++++- wgui/src/layout.rs | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dash-frontend/assets/gui/tab/apps.xml b/dash-frontend/assets/gui/tab/apps.xml index bbc36df0..893d9a19 100644 --- a/dash-frontend/assets/gui/tab/apps.xml +++ b/dash-frontend/assets/gui/tab/apps.xml @@ -8,7 +8,7 @@ flex_direction="column" overflow="visible" align_items="center" justify_content="center" gap="4" >
- +
diff --git a/dash-frontend/src/views/game_cover.rs b/dash-frontend/src/views/game_cover.rs index d33fdb23..eeeee3ee 100644 --- a/dash-frontend/src/views/game_cover.rs +++ b/dash-frontend/src/views/game_cover.rs @@ -107,10 +107,14 @@ impl View { content: Translation::from_raw_text(text), style: TextStyle { weight: Some(FontWeight::Bold), + color: Some(drawing::Color::new(1.0, 1.0, 1.0, 1.0).into()), wrap: true, size: Some(16.0), align: Some(HorizontalAlign::Center), - shadow: Some(WguiTextShadow::default()), + shadow: Some(WguiTextShadow { + color: drawing::Color::new(0.0, 0.0, 0.0, 1.0).into(), + ..Default::default() + }), ..Default::default() }, ..Default::default() diff --git a/wgui/src/layout.rs b/wgui/src/layout.rs index 25b65f4a..d4646952 100644 --- a/wgui/src/layout.rs +++ b/wgui/src/layout.rs @@ -711,6 +711,7 @@ impl Layout { .process(&self.state, &mut self.alterables, params.timestep_alpha); self.process_alterables(alterables)?; self.try_recompute_layout(params.size)?; + self.process_pending_components(); Ok(LayoutUpdateResult { sounds_to_play: std::mem::take(&mut self.sounds_to_play_once),