fix(button): button link text should be accent color
This commit is contained in:
parent
13aa5f88cb
commit
e279566481
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue