11.stylix/modules/fnott/hm.nix
Karun Sandhu a6eff346d8
treewide: adjust notification colors to represent urgency (#1253)
Closes: https://github.com/nix-community/stylix/issues/1247
Link: https://github.com/nix-community/stylix/pull/1253

Reviewed-by: Mateus Auler <mateus@auler.dev>
Approved-by: https://github.com/TheMaxMur
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-25 22:41:21 +02:00

52 lines
1.2 KiB
Nix

{ mkTarget, lib, ... }:
mkTarget {
name = "fnott";
humanName = "Fnott";
configElements = [
(
{ fonts }:
{
services.fnott.settings =
let
font = "${fonts.sansSerif.name}:size=${toString fonts.sizes.popups}";
in
{
main = {
title-font = font;
summary-font = font;
body-font = font;
};
};
}
)
(
{ colors, opacity }:
{
services.fnott.settings =
let
fg = c: "${c}ff";
bg =
c:
"${c}${
lib.toHexString (((builtins.floor (opacity.popups * 100 + 0.5)) * 255) / 100)
}";
in
with colors;
{
main = {
title-color = fg base05;
summary-color = fg base05;
body-color = fg base05;
progress-bar-color = fg base02;
background = bg base00;
};
low.border-color = fg base03;
normal.border-color = fg base0D;
critical.border-color = fg base08;
};
}
)
];
}