From ff7e17988d5868c72cfb39d09ccf4efb05d3ceda Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Sat, 22 Nov 2025 08:30:00 +0100 Subject: feat!: combine `Primary`, `Secondary`, `Tertiary` and `Error` Now only a singular `ColorQuartet` struct exists. Also rename some `Surface` and `Inverse` fields for consistency. --- src/menu.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/menu.rs') diff --git a/src/menu.rs b/src/menu.rs index d595c2f..4741ecd 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -21,13 +21,13 @@ pub fn default(theme: &Theme) -> Style { Style { border: border::rounded(4), - background: Background::Color(colors.surface_container.base), - text_color: colors.on_surface, + background: Background::Color(colors.container.base), + text_color: colors.text, selected_background: Background::Color(mix( - colors.surface_container.base, - colors.on_surface, + colors.container.base, + colors.text, HOVERED_LAYER_OPACITY, )), - selected_text_color: colors.on_surface, + selected_text_color: colors.text, } } -- cgit v1.2.3