Fix Avizo RGBA format (#127)

This commit is contained in:
Gregor Grigorjan 2023-07-19 14:22:31 +03:00 committed by GitHub
parent 0b8a92a4f8
commit 1f38acba99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
{pkgs, config, lib, options, ... }:
{ config, lib, options, ... }:
with config.lib.stylix.colors.withHashtag;
with config.lib.stylix.colors;
with config.stylix.fonts;
let
aviOpacity = lib.toHexString ((((builtins.ceil (config.stylix.opacity.popups * 100)) * 255) / 100));
aviOpacity = toString config.stylix.opacity.popups;
in
{
options.stylix.targets.avizo.enable =
@ -14,10 +14,11 @@ in
services.avizo = {
settings = {
default = {
background=base00 + aviOpacity;
border-color=base0D;
bar-fg-color=base05;
bar-bg-color=base00 + aviOpacity;
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;
};
};
};