avizo: use mkTarget
This commit is contained in:
parent
e0e61f8c97
commit
f4a4b2690c
1 changed files with 10 additions and 15 deletions
|
|
@ -1,22 +1,18 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.stylix.targets.avizo.enable =
|
||||
config.lib.stylix.mkEnableTarget "Avizo" true;
|
||||
{ mkTarget, ... }:
|
||||
mkTarget {
|
||||
name = "avizo";
|
||||
humanName = "Avizo";
|
||||
|
||||
# Referenced https://github.com/stacyharper/base16-mako
|
||||
config = lib.optionalAttrs (options.services ? avizo) (
|
||||
lib.mkIf (config.stylix.enable && config.stylix.targets.avizo.enable) {
|
||||
configElements =
|
||||
{ colors, opacity }:
|
||||
{
|
||||
services.avizo = {
|
||||
settings = {
|
||||
default =
|
||||
with config.lib.stylix.colors;
|
||||
with colors;
|
||||
let
|
||||
aviOpacity = toString config.stylix.opacity.popups;
|
||||
aviOpacity = toString opacity.popups;
|
||||
in
|
||||
{
|
||||
background = "rgba(${base01-rgb-r}, ${base01-rgb-g}, ${base01-rgb-b}, ${aviOpacity})";
|
||||
|
|
@ -27,6 +23,5 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue