2023-07-19 11:22:31 +00:00
|
|
|
{ config, lib, options, ... }:
|
2023-03-29 07:51:33 +00:00
|
|
|
|
2023-07-19 11:22:31 +00:00
|
|
|
with config.lib.stylix.colors;
|
2023-03-29 07:51:33 +00:00
|
|
|
with config.stylix.fonts;
|
2023-05-18 19:00:50 +00:00
|
|
|
let
|
2023-07-19 11:22:31 +00:00
|
|
|
aviOpacity = toString config.stylix.opacity.popups;
|
2023-05-18 19:00:50 +00:00
|
|
|
in
|
2023-03-29 07:51:33 +00:00
|
|
|
{
|
|
|
|
options.stylix.targets.avizo.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "Avizo" true;
|
|
|
|
|
|
|
|
# Referenced https://github.com/stacyharper/base16-mako
|
2023-05-20 10:42:03 +00:00
|
|
|
config = lib.optionalAttrs (options.services ? avizo) (lib.mkIf config.stylix.targets.avizo.enable {
|
2023-03-29 07:51:33 +00:00
|
|
|
services.avizo = {
|
|
|
|
settings = {
|
|
|
|
default = {
|
2023-07-19 11:22:31 +00:00
|
|
|
background = "rgba(${base01-rgb-r}, ${base01-rgb-g}, ${base01-rgb-b}, ${aviOpacity})";
|
|
|
|
border-color = "rgba(${base0D-rgb-r}, ${base0D-rgb-g}, ${base0D-rgb-b}, ${aviOpacity})";
|
|
|
|
bar-fg-color = "rgba(${base05-rgb-r}, ${base05-rgb-g}, ${base05-rgb-b}, ${aviOpacity})";
|
|
|
|
bar-bg-color = "rgba(${base01-rgb-r}, ${base01-rgb-g}, ${base01-rgb-b}, ${aviOpacity})";
|
|
|
|
image-opacity = aviOpacity;
|
2023-03-29 07:51:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-05-20 10:42:03 +00:00
|
|
|
});
|
2023-03-29 07:51:33 +00:00
|
|
|
}
|