aboutsummaryrefslogtreecommitdiff
path: root/examples/styling.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/styling.rs')
-rw-r--r--examples/styling.rs7
1 files changed, 3 insertions, 4 deletions
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),