11.stylix/modules/fnott/hm.nix
Karun Sandhu b1a84f8982
fnott: rename progress-bar-color setting to progress-color (#1872)
Rename progress-bar-color setting to progress-color, following upstream
commit [1] ("notification: implement progress-as-background").

[1]: f78cf9887e

Link: https://github.com/nix-community/stylix/pull/1872

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-09-05 21:41:37 +00:00

59 lines
1.3 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-color = fg base02;
background = bg base00;
};
low.border-color = fg base03;
normal.border-color = fg base0D;
critical.border-color = fg base08;
};
}
)
(
{ polarity, icons }:
{
services.fnott.settings.main."icon-theme" =
if (polarity == "dark") then icons.dark else icons.light;
}
)
];
}