mirror of
https://github.com/danth/stylix
synced 2024-11-22 04:03:09 +00:00
wofi: init (#493)
This commit is contained in:
parent
feb2973dfa
commit
c0309fc3f4
1 changed files with 45 additions and 0 deletions
45
modules/wofi/hm.nix
Normal file
45
modules/wofi/hm.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with config.stylix.fonts; let
|
||||
colors = config.lib.stylix.colors.withHashtag;
|
||||
in {
|
||||
options.stylix.targets.wofi.enable =
|
||||
config.lib.stylix.mkEnableTarget "wofi" config.programs.wofi.enable;
|
||||
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.wofi.enable) {
|
||||
programs.wofi.style = with colors; ''
|
||||
window {
|
||||
font-family: "${monospace.name}";
|
||||
font-size: ${toString sizes.popups};
|
||||
|
||||
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};
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue