summaryrefslogtreecommitdiff
path: root/nix/programs/wofi
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-17 21:35:43 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-17 21:35:43 -0400
commitf40273ec45e6676b975d42f4bc0c44a6392b7098 (patch)
treea896d01bed07fb1aa57d37b75d8fa2ad714e4ccf /nix/programs/wofi
parentchange color scheme basis (diff)
downloaddotfiles-nix-f40273ec45e6676b975d42f4bc0c44a6392b7098.tar.gz
dotfiles-nix-f40273ec45e6676b975d42f4bc0c44a6392b7098.tar.bz2
dotfiles-nix-f40273ec45e6676b975d42f4bc0c44a6392b7098.zip
refactor styles to new color scheme basis
Diffstat (limited to 'nix/programs/wofi')
-rw-r--r--nix/programs/wofi/style.nix25
1 files changed, 13 insertions, 12 deletions
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};
}
''