button: Remove duplicate disabled style (#1529)

This commit is contained in:
Floyd Wang 2025-11-06 18:47:59 +08:00 committed by GitHub
parent 80689264e2
commit f33d112819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -537,13 +537,6 @@ impl RenderOnce for Button {
(on_hover)(hovered, window, cx);
})
})
.when(self.disabled, |this| {
let disabled_style = style.disabled(self.outline, cx);
this.bg(disabled_style.bg)
.text_color(disabled_style.fg)
.border_color(disabled_style.border)
.shadow_none()
})
.child({
h_flex()
.id("label")