summaryrefslogtreecommitdiffstats
path: root/examples/scrollable/src/style.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-11-24 00:17:30 +0100
committerLibravatar GitHub <noreply@github.com>2020-11-24 00:17:30 +0100
commit5615643c5200ec98c5bb8ca992a67697d212ef5d (patch)
treed94fda43e3c7037208caf7645f9a9313b6aa02c4 /examples/scrollable/src/style.rs
parentea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff (diff)
parent1916755b6b3f84329c3e3f3e9a4e1b6d2b4e45a4 (diff)
downloadiced-5615643c5200ec98c5bb8ca992a67697d212ef5d.tar.gz
iced-5615643c5200ec98c5bb8ca992a67697d212ef5d.tar.bz2
iced-5615643c5200ec98c5bb8ca992a67697d212ef5d.zip
Merge pull request #628 from hecrj/improvement/float-border-radius
Use `f32` for `border_width` and `border_radius`
Diffstat (limited to 'examples/scrollable/src/style.rs')
-rw-r--r--examples/scrollable/src/style.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/scrollable/src/style.rs b/examples/scrollable/src/style.rs
index 24d711ac..ae449141 100644
--- a/examples/scrollable/src/style.rs
+++ b/examples/scrollable/src/style.rs
@@ -114,7 +114,7 @@ mod dark {
radio::Style {
background: SURFACE.into(),
dot_color: ACTIVE,
- border_width: 1,
+ border_width: 1.0,
border_color: ACTIVE,
}
}
@@ -137,13 +137,13 @@ mod dark {
..SCROLLBAR
}
.into(),
- border_radius: 2,
- border_width: 0,
+ border_radius: 2.0,
+ border_width: 0.0,
border_color: Color::TRANSPARENT,
scroller: scrollable::Scroller {
color: Color { a: 0.7, ..SCROLLER },
- border_radius: 2,
- border_width: 0,
+ border_radius: 2.0,
+ border_width: 0.0,
border_color: Color::TRANSPARENT,
},
}
@@ -182,7 +182,7 @@ mod dark {
rule::Style {
color: SURFACE,
width: 2,
- radius: 1,
+ radius: 1.0,
fill_mode: rule::FillMode::Percent(30.0),
}
}