From 736eca11502a2685a96456c1e8ce48ac9c3d6578 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Tue, 5 Mar 2024 15:12:29 +0100 Subject: [PATCH] fix(theme): `Container::List` has wrong background color on light theme --- src/theme/style/iced.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/theme/style/iced.rs b/src/theme/style/iced.rs index 05c1a50b..785be9a3 100644 --- a/src/theme/style/iced.rs +++ b/src/theme/style/iced.rs @@ -459,7 +459,12 @@ impl container::StyleSheet for Theme { }, Container::List => { - let component = &self.current_container().component; + // TODO: The primary component has the wrong color on the light theme. + let component = if cosmic.is_dark { + &self.current_container().component + } else { + &cosmic.background.component + }; container::Appearance { icon_color: Some(component.on.into()),