git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commita2bf5796d90467ad691d6273f12dc2991b364869
parentaf30093e47
authorLucas Galante <[email protected]>
date2026-07-05 14:04
fix: set fade alpha target to 1.0 to match opaque background override

 src/widget/input/dropdown.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widget/input/dropdown.rs b/src/widget/input/dropdown.rs
index 46f659c..06e3f31 100644
--- a/src/widget/input/dropdown.rs
+++ b/src/widget/input/dropdown.rs
@@ -536,7 +536,7 @@ impl Element for Dropdown {
                 parent_color = (*parent_ptr).color();
             }
         }
-        let alpha = bg_color[3];
+        let alpha = 1.0; // The dropdown background is drawn fully opaque
         let bg_rgb = [
             ((parent_color[0] * (1.0 - alpha) + bg_color[0] * alpha) * 255.0).round().clamp(0.0, 255.0) as u8,
             ((parent_color[1] * (1.0 - alpha) + bg_color[1] * alpha) * 255.0).round().clamp(0.0, 255.0) as u8,