Fix the disabled style of ghost button (#144)

This commit is contained in:
Floyd Wang 2024-08-14 17:44:00 +08:00 committed by GitHub
parent 3550b1ee13
commit c9a1bba3c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -536,7 +536,9 @@ impl ButtonStyle {
_ => cx.theme().secondary.darken(0.2).grayscale(),
};
let fg = match self {
ButtonStyle::Link | ButtonStyle::Text => cx.theme().link.grayscale(),
ButtonStyle::Link | ButtonStyle::Text | ButtonStyle::Ghost => {
cx.theme().link.grayscale()
}
_ => cx.theme().secondary_foreground.darken(0.2).grayscale(),
};