11.stylix/modules/wofi/hm.nix
awwpotato 7ffb31da69
treewide: use mkTarget (batch 2) (#1362)
Link: https://github.com/nix-community/stylix/pull/1362

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-23 19:23:39 +02:00

52 lines
1,020 B
Nix

{ mkTarget, ... }:
mkTarget {
name = "wofi";
humanName = "wofi";
configElements = [
(
{ fonts }:
{
programs.wofi.style = ''
window {
font-family: "${fonts.monospace.name}";
font-size: ${toString fonts.sizes.popups}pt;
}
'';
}
)
(
{ colors }:
{
programs.wofi.style = with colors.withHashtag; ''
window {
background-color: ${base00};
color: ${base05};
}
#entry:nth-child(odd) {
background-color: ${base00};
}
#entry:nth-child(even) {
background-color: ${base01};
}
#entry:selected {
background-color: ${base02};
}
#input {
background-color: ${base01};
color: ${base04};
border-color: ${base02};
}
#input:focus {
border-color: ${base0A};
}
'';
}
)
];
}