diff options
Diffstat (limited to '')
| -rw-r--r-- | src/radio.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/radio.rs b/src/radio.rs index 7fb7a3f..fcd6856 100644 --- a/src/radio.rs +++ b/src/radio.rs @@ -33,25 +33,21 @@ pub fn default(theme: &Theme, status: Status) -> Style { border_color: if is_selected { active.border_color } else { - surface.on_surface + surface.text }, ..active }, Status::Hovered { is_selected } => Style { - dot_color: mix( - primary.color, - surface.on_surface, - HOVERED_LAYER_OPACITY, - ), + dot_color: mix(primary.color, surface.text, HOVERED_LAYER_OPACITY), border_color: if is_selected { - mix(primary.color, surface.on_surface, HOVERED_LAYER_OPACITY) + mix(primary.color, surface.text, HOVERED_LAYER_OPACITY) } else { - disabled_text(surface.on_surface) + disabled_text(surface.text) }, background: Background::Color(if is_selected { Color { a: HOVERED_LAYER_OPACITY, - ..surface.on_surface + ..surface.text } } else { Color::TRANSPARENT |
