2024-02-20 19:31:21 +00:00
|
|
|
{
|
|
|
|
config,
|
2024-02-29 15:29:19 +00:00
|
|
|
accentColour ? "base07",
|
2024-02-20 19:31:21 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-02-12 08:48:19 +00:00
|
|
|
services.avizo = {
|
|
|
|
enable = true;
|
2024-03-09 11:44:30 +00:00
|
|
|
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";
|
|
|
|
};
|
2024-02-12 08:48:19 +00:00
|
|
|
in {
|
2024-03-09 11:44:30 +00:00
|
|
|
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";
|
2024-02-12 08:48:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|