Tweak styling of Slider and improve contrast of Background

This commit is contained in:
Héctor Ramón Jiménez 2022-05-26 05:31:25 +02:00
parent 822a3cd04f
commit 5a39dad506
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 16 additions and 18 deletions

View file

@ -31,7 +31,7 @@ impl Theme {
impl Default for Theme {
fn default() -> Self {
Self::Dark
Self::Light
}
}
@ -145,10 +145,10 @@ impl slider::StyleSheet for Theme {
};
slider::Style {
rail_colors: (palette.background.strong, palette.background.base),
rail_colors: (palette.primary.base, palette.background.base),
handle: slider::Handle {
color: palette.background.base,
border_color: palette.border,
border_color: palette.primary.base,
..handle
},
}
@ -160,7 +160,7 @@ impl slider::StyleSheet for Theme {
slider::Style {
handle: slider::Handle {
color: palette.background.weak,
color: palette.primary.weak,
..active.handle
},
..active
@ -173,7 +173,7 @@ impl slider::StyleSheet for Theme {
slider::Style {
handle: slider::Handle {
color: palette.background.strong,
color: palette.primary.base,
..active.handle
},
..active