64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{ nixosConfig, config, lib, pkgs, ... }:
|
||
|
||
let
|
||
solarized = import ../solarized.nix;
|
||
in
|
||
{
|
||
xdg.configFile."wofi/style.css".text =
|
||
let
|
||
# adding it to the header doesn’t work since the defaults overwrite it
|
||
commonConfig = /* ini */ ''
|
||
background=${lib.substring 1 6 solarized.base3}
|
||
border-bottom=${lib.substring 1 6 solarized.base2}
|
||
border=${lib.substring 1 6 solarized.base2}
|
||
button-background=${lib.substring 1 6 solarized.base3}
|
||
button-text=${lib.substring 1 6 solarized.base00}
|
||
'';
|
||
in
|
||
/* css */ ''
|
||
window {
|
||
margin: 0px;
|
||
border: 3px solid ${solarized.base02.hex};
|
||
border-radius: 8px;
|
||
background-color: rgba(${solarized.base03.rgb},0.8);
|
||
}
|
||
|
||
#input {
|
||
margin: 5px;
|
||
border: none;
|
||
color: ${solarized.base0.hex};
|
||
background-color: rgba(${solarized.base02.rgb},0.8);
|
||
}
|
||
|
||
#inner-box {
|
||
margin: 5px;
|
||
border: none;
|
||
background: none;
|
||
}
|
||
|
||
#outer-box {
|
||
margin: 5px;
|
||
border: none;
|
||
background: none;
|
||
}
|
||
|
||
#scroll {
|
||
margin: 0px;
|
||
border: none;
|
||
}
|
||
|
||
#text {
|
||
margin: 5px;
|
||
border: none;
|
||
color: ${solarized.base0.hex};
|
||
}
|
||
|
||
#entry:selected {
|
||
background-color: rgba(${solarized.base02.rgb},0.8);
|
||
}
|
||
|
||
#entry:selected #text{
|
||
color: ${solarized.green.hex};
|
||
}
|
||
'';
|
||
}
|