From f40273ec45e6676b975d42f4bc0c44a6392b7098 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 17 Jun 2025 21:35:43 -0400 Subject: refactor styles to new color scheme basis --- nix/programs/wofi/style.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'nix/programs/wofi/style.nix') diff --git a/nix/programs/wofi/style.nix b/nix/programs/wofi/style.nix index b73ae28..40fb861 100644 --- a/nix/programs/wofi/style.nix +++ b/nix/programs/wofi/style.nix @@ -2,10 +2,11 @@ let - accentColor = "#${theme.colors.accent}"; - textColor = "#${theme.colors.base05}"; - baseColor = "#${theme.colors.base00}"; - surfaceColor = "#${theme.colors.base02}"; + fg = "#${theme.colors.fg}"; + bg = "#${theme.colors.bg}"; + surface-fg = "#${theme.colors.surface.fg}"; + surface-bg = "#${theme.colors.surface.bg}"; + primary = "#${theme.colors.primary}"; fontSize = "${toString theme.font.size}px"; outerGap = "${toString theme.outerGap}px"; innerGap = "${toString theme.innerGap}px"; @@ -24,9 +25,9 @@ in /* Window */ window { margin: 0px; - border: ${borderWidth} solid ${accentColor}; + border: ${borderWidth} solid ${primary}; border-radius: ${outerRadius}; - background-color: ${baseColor}; + background-color: ${bg}; } /* Outer Box */ @@ -46,14 +47,14 @@ window { margin: ${innerGap}; padding: ${innerGap}; border: none; - color: ${textColor}; - background-color: ${surfaceColor}; + color: ${surface-fg}; + background-color: ${surface-bg}; border-radius: ${outerRadius}; } #input:focus, #input:active { - border: ${borderWidth} solid ${accentColor}; + border: ${borderWidth} solid ${primary}; box-shadow: none; outline: none; } @@ -63,17 +64,17 @@ window { margin: ${innerGap}; padding: ${innerGap}; border: none; - color: ${textColor}; + color: ${fg}; } /* Selected Entry */ #entry:selected { - background-color: ${accentColor}; + background-color: ${primary}; border-radius: ${outerRadius}; } #entry:selected #text { - color: ${baseColor}; + color: ${bg}; } '' -- cgit v1.2.3-freya