summaryrefslogtreecommitdiffstats
path: root/examples/screenshot
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-04 20:42:37 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-04 20:42:37 +0100
commitf4a4845ddbdced81ae4ff60bfa19f0e602d84709 (patch)
treeb532017384eb9e43e57bf73be372aea0d55af652 /examples/screenshot
parentdb92e1c942154bee474fee5e2c187f8a52a1bb96 (diff)
downloadiced-f4a4845ddbdced81ae4ff60bfa19f0e602d84709.tar.gz
iced-f4a4845ddbdced81ae4ff60bfa19f0e602d84709.tar.bz2
iced-f4a4845ddbdced81ae4ff60bfa19f0e602d84709.zip
Simplify theming for `Button` widget
Diffstat (limited to 'examples/screenshot')
-rw-r--r--examples/screenshot/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/screenshot/src/main.rs b/examples/screenshot/src/main.rs
index 79749956..dc4684d4 100644
--- a/examples/screenshot/src/main.rs
+++ b/examples/screenshot/src/main.rs
@@ -216,9 +216,9 @@ impl Application for Example {
)
} else {
button(centered_text("Saving..."))
- .style(theme::Button::Secondary)
+ .style(button::secondary)
}
- .style(theme::Button::Secondary)
+ .style(button::secondary)
.padding([10, 20, 10, 20])
.width(Length::Fill)
]
@@ -227,7 +227,7 @@ impl Application for Example {
crop_controls,
button(centered_text("Crop"))
.on_press(Message::Crop)
- .style(theme::Button::Destructive)
+ .style(button::destructive)
.padding([10, 20, 10, 20])
.width(Length::Fill),
]