Removed Button shadow in Light mode for ghost style button.
This commit is contained in:
parent
c925a6aa61
commit
6eb63dfd28
1 changed files with 1 additions and 11 deletions
|
|
@ -237,16 +237,6 @@ impl RenderOnce for Button {
|
||||||
.border_color(disabled_style.border)
|
.border_color(disabled_style.border)
|
||||||
})
|
})
|
||||||
.border_1()
|
.border_1()
|
||||||
.map(|this| match theme.mode {
|
|
||||||
ThemeMode::Light => {
|
|
||||||
if self.disabled {
|
|
||||||
this
|
|
||||||
} else {
|
|
||||||
this.shadow_sm()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ThemeMode::Dark => this,
|
|
||||||
})
|
|
||||||
.child({
|
.child({
|
||||||
let text_color = if self.disabled {
|
let text_color = if self.disabled {
|
||||||
normal_style.fg.opacity(0.6)
|
normal_style.fg.opacity(0.6)
|
||||||
|
|
@ -323,7 +313,7 @@ impl ButtonStyle {
|
||||||
ButtonStyle::Secondary => cx.theme().secondary_hover,
|
ButtonStyle::Secondary => cx.theme().secondary_hover,
|
||||||
ButtonStyle::Danger => cx.theme().destructive_hover,
|
ButtonStyle::Danger => cx.theme().destructive_hover,
|
||||||
ButtonStyle::Outline => cx.theme().secondary_hover,
|
ButtonStyle::Outline => cx.theme().secondary_hover,
|
||||||
ButtonStyle::Ghost => cx.theme().secondary_hover,
|
ButtonStyle::Ghost => cx.theme().secondary,
|
||||||
};
|
};
|
||||||
let border = self.border_color(cx);
|
let border = self.border_color(cx);
|
||||||
let fg = self.text_color(cx);
|
let fg = self.text_color(cx);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue