diff options
author | Freya Murphy <freya@freyacat.org> | 2025-01-23 09:26:51 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-01-23 09:26:51 -0500 |
commit | 1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2 (patch) | |
tree | eecdad132615a4469c22ee6d4ccd1df087b6159d /nix/programs/wofi/style.nix | |
parent | use base16 in neovim and starship (diff) | |
download | dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.gz dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.bz2 dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.zip |
reconfigure
Diffstat (limited to 'nix/programs/wofi/style.nix')
-rw-r--r-- | nix/programs/wofi/style.nix | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/nix/programs/wofi/style.nix b/nix/programs/wofi/style.nix new file mode 100644 index 0000000..b73ae28 --- /dev/null +++ b/nix/programs/wofi/style.nix @@ -0,0 +1,80 @@ +{ theme }: + +let + + accentColor = "#${theme.colors.accent}"; + textColor = "#${theme.colors.base05}"; + baseColor = "#${theme.colors.base00}"; + surfaceColor = "#${theme.colors.base02}"; + fontSize = "${toString theme.font.size}px"; + outerGap = "${toString theme.outerGap}px"; + innerGap = "${toString theme.innerGap}px"; + outerRadius = "${toString theme.outerRadius}px"; + innerRadius = "${toString theme.innerRadius}px"; + borderWidth = "${toString theme.borderWidth}px"; + +in + +'' +* { + font-family: ${theme.font.monospace}; + font-size: ${fontSize}; +} + +/* Window */ +window { + margin: 0px; + border: ${borderWidth} solid ${accentColor}; + border-radius: ${outerRadius}; + background-color: ${baseColor}; +} + +/* Outer Box */ +#outer-box { + padding: ${outerGap}; +} + +/* Scroll */ +#scroll { + margin: 0px; + padding: ${innerGap}; + border: none; +} + +/* Input */ +#input { + margin: ${innerGap}; + padding: ${innerGap}; + border: none; + color: ${textColor}; + background-color: ${surfaceColor}; + border-radius: ${outerRadius}; +} + +#input:focus, +#input:active { + border: ${borderWidth} solid ${accentColor}; + box-shadow: none; + outline: none; +} + +/* Text */ +#text { + margin: ${innerGap}; + padding: ${innerGap}; + border: none; + color: ${textColor}; +} + +/* Selected Entry */ +#entry:selected { + background-color: ${accentColor}; + border-radius: ${outerRadius}; +} + +#entry:selected #text { + color: ${baseColor}; +} + +'' + |