summaryrefslogtreecommitdiffstats
path: root/examples/tour.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-12 02:32:16 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-12 02:32:16 +0200
commite74f1179769cc4dc3e91cb0b5794526b3a8c0dcd (patch)
tree55506a568791ee213fb120befbc0d1faa74c3065 /examples/tour.rs
parentc63bdacaad7d923358863e3b6b2524893788d91c (diff)
downloadiced-e74f1179769cc4dc3e91cb0b5794526b3a8c0dcd.tar.gz
iced-e74f1179769cc4dc3e91cb0b5794526b3a8c0dcd.tar.bz2
iced-e74f1179769cc4dc3e91cb0b5794526b3a8c0dcd.zip
Add a slight shadow to buttons for feedback
Diffstat (limited to 'examples/tour.rs')
-rw-r--r--examples/tour.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/tour.rs b/examples/tour.rs
index 6ce1e9f1..f77dc241 100644
--- a/examples/tour.rs
+++ b/examples/tour.rs
@@ -556,8 +556,8 @@ fn button<'a, Message>(
.color(Color::WHITE)
.horizontal_alignment(HorizontalAlignment::Center),
)
- .padding(10)
- .border_radius(10)
+ .padding(12)
+ .border_radius(12)
}
fn primary_button<'a, Message>(
@@ -565,9 +565,9 @@ fn primary_button<'a, Message>(
label: &str,
) -> Button<'a, Message> {
button(state, label).background(Background::Color(Color {
- r: 0.3,
- g: 0.3,
- b: 0.8,
+ r: 0.11,
+ g: 0.42,
+ b: 0.87,
a: 1.0,
}))
}
@@ -577,9 +577,9 @@ fn secondary_button<'a, Message>(
label: &str,
) -> Button<'a, Message> {
button(state, label).background(Background::Color(Color {
- r: 0.8,
- g: 0.8,
- b: 0.8,
+ r: 0.4,
+ g: 0.4,
+ b: 0.4,
a: 1.0,
}))
}