Rename 'high' urgency name to 'critical', following upstream commit [1]
("Change urgency level name").
[1]: 5f5e43f94a
Link: https://github.com/nix-community/stylix/pull/1936
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Mateus Auler <mateus@auler.dev>
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ mkTarget, lib, ... }:
|
|
mkTarget {
|
|
name = "mako";
|
|
humanName = "Mako";
|
|
|
|
# Referenced https://github.com/stacyharper/base16-mako
|
|
configElements = [
|
|
(
|
|
{ fonts }:
|
|
{
|
|
services.mako.settings.font = "${fonts.sansSerif.name} ${toString fonts.sizes.popups}";
|
|
}
|
|
)
|
|
(
|
|
{ colors, opacity }:
|
|
{
|
|
services.mako =
|
|
let
|
|
makoOpacity = lib.toHexString (builtins.ceil (opacity.popups * 255));
|
|
in
|
|
with colors.withHashtag;
|
|
{
|
|
settings = {
|
|
background-color = base00 + makoOpacity;
|
|
border-color = base0D;
|
|
text-color = base05;
|
|
progress-color = "over ${base02}";
|
|
|
|
"urgency=low" = {
|
|
background-color = "${base00}${makoOpacity}";
|
|
border-color = base03;
|
|
text-color = base05;
|
|
};
|
|
"urgency=critical" = {
|
|
background-color = "${base00}${makoOpacity}";
|
|
border-color = base08;
|
|
text-color = base05;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|