From ff7e17988d5868c72cfb39d09ccf4efb05d3ceda Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Sat, 22 Nov 2025 08:30:00 +0100 Subject: feat!: combine `Primary`, `Secondary`, `Tertiary` and `Error` Now only a singular `ColorQuartet` struct exists. Also rename some `Surface` and `Inverse` fields for consistency. --- examples/styling.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/styling.rs b/examples/styling.rs index cff0b77..4ed643e 100644 --- a/examples/styling.rs +++ b/examples/styling.rs @@ -51,7 +51,7 @@ impl Styling { toggler_value: false, } } - + fn update(&mut self, message: Message) { match message { Message::ThemeChanged(theme) => { @@ -98,7 +98,7 @@ impl Styling { .padding([5, 10]) .width(Fill) .style(|theme: &Theme| { - let color = theme.colors().surface.on_surface; + let color = theme.colors().surface.text; container::Style { background: Some( disabled_container(color).into(), @@ -178,8 +178,7 @@ impl Styling { .style(|theme| { let style = iced_material::container::surface_container_lowest(theme); - let border_color = - theme.colors().surface.surface_container.high; + let border_color = theme.colors().surface.container.high; container::Style { border: style.border.color(border_color).width(1), -- cgit v1.2.3