Better opacity handling

This commit is contained in:
Filippo Berto 2021-06-29 11:05:55 +02:00
parent 30efa48b7d
commit 247185eafe
3 changed files with 15 additions and 16 deletions

View file

@ -21,7 +21,7 @@ in
(
final: prev: rec {
rice = prev.rice // {
colorPalette = with pkgs.rice; palette.palette {
colorPalette = with pkgs.rice; palette.palette rec {
black = color.hexToRgba nord.n0;
red = color.hexToRgba nord.n11;
green = color.hexToRgba nord.n14;
@ -34,11 +34,14 @@ in
bright-white = color.hexToRgba nord.n6;
bright-red = color.hexToRgba nord.n12;
cursor-cursor = color.hexToRgba nord.n4;
primary-background = color.tAlphaRgba (v: float.round (255 * opacity)) black;
};
font = {
normal = { package = pkgs.cantarell-fonts; name = "Cantarell"; };
monospace = { package = pkgs.nerdfonts; name = "FuraCode Nerd Font Mono"; };
};
opacity = 0.9;
};
}
)