summaryrefslogtreecommitdiffstats
path: root/examples/layout
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-25 22:21:22 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-25 22:21:22 +0100
commiteae4065300e9997db12268be55eceb4e4c294b1e (patch)
tree677326f37ac8bbf922c18369d0f1d4955852fb18 /examples/layout
parenta2a8381a49ac2dd1cd65eb382b9ee02bbfa17286 (diff)
parent74373cb086da6097eae7d2e8bd6348aaf7c43857 (diff)
downloadiced-eae4065300e9997db12268be55eceb4e4c294b1e.tar.gz
iced-eae4065300e9997db12268be55eceb4e4c294b1e.tar.bz2
iced-eae4065300e9997db12268be55eceb4e4c294b1e.zip
Merge pull request #2350 from iced-rs/theming-revolutions
Theming Revolutions
Diffstat (limited to 'examples/layout')
-rw-r--r--examples/layout/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/layout/src/main.rs b/examples/layout/src/main.rs
index 713e2b70..66d79091 100644
--- a/examples/layout/src/main.rs
+++ b/examples/layout/src/main.rs
@@ -81,10 +81,10 @@ impl Layout {
} else {
self.example.view()
})
- .style(|theme, _status| {
+ .style(|theme| {
let palette = theme.extended_palette();
- container::Appearance::default()
+ container::Style::default()
.with_border(palette.background.strong.color, 4.0)
})
.padding(4)
@@ -245,10 +245,10 @@ fn application<'a>() -> Element<'a, Message> {
.padding(10)
.align_items(Alignment::Center),
)
- .style(|theme, _status| {
+ .style(|theme| {
let palette = theme.extended_palette();
- container::Appearance::default()
+ container::Style::default()
.with_border(palette.background.strong.color, 1)
});