11.stylix/modules/mako/hm.nix
awwpotato 7ffb31da69
treewide: use mkTarget (batch 2) (#1362)
Link: https://github.com/nix-community/stylix/pull/1362

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-23 19:23:39 +02:00

46 lines
1.2 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 * 100)) * 255) / 100
);
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 = base0D;
text-color = base0A;
};
"urgency=high" = {
background-color = "${base00}${makoOpacity}";
border-color = base0D;
text-color = base08;
};
};
};
}
)
];
}