aboutsummaryrefslogtreecommitdiff
path: root/src/scrollable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/scrollable.rs')
-rw-r--r--src/scrollable.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/scrollable.rs b/src/scrollable.rs
index 0277ea8..5f3f166 100644
--- a/src/scrollable.rs
+++ b/src/scrollable.rs
@@ -29,7 +29,7 @@ pub fn default(theme: &Theme, status: Status) -> Style {
let active_rail = Rail {
background: None,
scroller: Scroller {
- color: surface.text,
+ background: surface.text.into(),
border: border::rounded(400),
},
border: Border::default(),
@@ -38,7 +38,7 @@ pub fn default(theme: &Theme, status: Status) -> Style {
let disabled_rail = Rail {
background: Some(Background::Color(disabled_container(surface.text))),
scroller: Scroller {
- color: disabled_text(surface.text),
+ background: disabled_text(surface.text).into(),
border: border::rounded(400),
},
..active_rail
@@ -98,11 +98,12 @@ pub fn default(theme: &Theme, status: Status) -> Style {
} => {
let hovered_rail = Rail {
scroller: Scroller {
- color: mix(
+ background: mix(
surface.text,
surface.color,
HOVERED_LAYER_OPACITY,
- ),
+ )
+ .into(),
border: border::rounded(400),
},
..active_rail
@@ -141,11 +142,12 @@ pub fn default(theme: &Theme, status: Status) -> Style {
} => {
let dragged_rail = Rail {
scroller: Scroller {
- color: mix(
+ background: mix(
surface.text,
surface.color,
PRESSED_LAYER_OPACITY,
- ),
+ )
+ .into(),
border: border::rounded(400),
},
..active_rail