From 853fee571d482be4348969293c7b3ab07bcd628e Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 12 Nov 2026 01:16:38 +0000 Subject: [PATCH] Layer rows take the plain hover fill --- crates/ui-widgets/src/list/row/style.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ui-widgets/src/list/row/style.rs b/crates/ui-widgets/src/list/row/style.rs index 62349b48d..a268045b2 100644 --- a/crates/ui-widgets/src/list/row/style.rs +++ b/crates/ui-widgets/src/list/row/style.rs @@ -9,8 +9,6 @@ use egui::CornerRadius; /// Least contrast ratio of a selected fill on the panel for it to identify the row alone: standard, high. const OUTLINE_MIN: (f64, f64) = (3.0, 4.5); -/// How far the hover tint of the layer form tints toward the accent. -const LAYER_TINT: f32 = 0.12; /// How far the stripe of a striped row tints toward the hover fill. const STRIPE: f32 = 0.25; @@ -72,7 +70,7 @@ pub(super) fn fill_of(cx: &StyleCx<'_>, key: FillKey) -> Stateful { let state = &cx.tokens.color.state; let clear = Rgba::TRANSPARENT; let rest = if key.striped { state.hover.faded(STRIPE) } else { clear }; - let hover = if key.layer { over(cx.tokens.color.accent.solid.faded(LAYER_TINT), state.hover) } else { state.hover }; + let hover = state.hover; let c = |rgba: Rgba| cx.color(rgba); // `over` keeps the alpha of what is under it, so over a clear rest the tint is the token itself. let tinted = if rest.a() == 0 { hover } else { over(hover, rest) };