From 53513cab236efd2232abd7b897298dcf890cd4b5 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 16 Sep 2025 22:47:10 +0800 Subject: [PATCH] Fix filled button hover background (#38235) Release Notes: - Fixed filled button hover background. ## Before https://github.com/user-attachments/assets/fbc75890-d1a4-4a0c-b54e-ca2c7e63a661 ## After https://github.com/user-attachments/assets/a3595b01-e143-4cd0-8bc4-90db9ccfbf74 This appears to be a minor calculation error, not an intentional use of this value. If we pass `0.92` to `fade_out`, the calculated will be `alpha: 0.08`. --------- Co-authored-by: Danilo Leal --- crates/ui/src/components/button/button_like.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/components/button/button_like.rs b/crates/ui/src/components/button/button_like.rs index 477fc57b22f9178edc2123a76fcaf68701f8fb4d..d38b919bffe3df2e918266d7d76dbb1e4f02bf97 100644 --- a/crates/ui/src/components/button/button_like.rs +++ b/crates/ui/src/components/button/button_like.rs @@ -217,7 +217,7 @@ impl ButtonStyle { match self { ButtonStyle::Filled => { let mut filled_background = element_bg_from_elevation(elevation, cx); - filled_background.fade_out(0.92); + filled_background.fade_out(0.5); ButtonLikeStyles { background: filled_background,