From e279566481dfa08e9501bdac86f870cc182f5691 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 27 Feb 2023 19:29:42 -0500 Subject: [PATCH] fix(button): button link text should be accent color --- src/theme/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/mod.rs b/src/theme/mod.rs index b3433a2a..be9294c2 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -171,7 +171,7 @@ impl Button { Button::Destructive => &cosmic.destructive, Button::Text => &cosmic.current_container().component, Button::Link => &cosmic.accent, - Button::LinkActive => &cosmic.current_container().component, + Button::LinkActive => &cosmic.accent, Button::Transparent => &TRANSPARENT_COMPONENT, Button::Deactivated => &cosmic.current_container().component, Button::Custom { .. } => &TRANSPARENT_COMPONENT, @@ -199,7 +199,7 @@ impl button::StyleSheet for Theme { _ => Some(Background::Color(component.base.into())), }, text_color: match style { - Button::LinkActive => component.selected_text.into(), + Button::Link | Button::LinkActive => component.base.into(), _ => component.on.into(), }, ..button::Appearance::default()