Evie Litherland-Smith
69741482bc
Update some more places that weren't using the stylix opacity setting
24 lines
778 B
Nix
24 lines
778 B
Nix
{
|
|
config,
|
|
accentColour ? "base07",
|
|
...
|
|
}: {
|
|
services.avizo = {
|
|
enable = true;
|
|
settings.default = with config.stylix;
|
|
with config.lib.stylix.colors; let
|
|
accent = with config.lib.stylix; {
|
|
r = colors."${accentColour}-rgb-r";
|
|
g = colors."${accentColour}-rgb-g";
|
|
b = colors."${accentColour}-rgb-b";
|
|
};
|
|
in {
|
|
background = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, ${toString opacity.popups})";
|
|
bar-bg-color = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, ${toString opacity.popups})";
|
|
bar-fg-color = "rgba(${base05-rgb-r}, ${base05-rgb-g}, ${base05-rgb-b}, 1.0)";
|
|
border-color = "rgba(${accent.r}, ${accent.g}, ${accent.b}, 1.0)";
|
|
image-opacity = "1.0";
|
|
};
|
|
};
|
|
}
|