From 74f1ac55d3b09fb3be23563d398b430e756a6e83 Mon Sep 17 00:00:00 2001 From: awwpotato <153149335+awwpotato@users.noreply.github.com> Date: Fri, 7 Mar 2025 12:00:40 -0800 Subject: [PATCH] fnott: init (#948) Closes: https://github.com/danth/stylix/issues/556 Link: https://github.com/danth/stylix/pull/948 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/fnott/hm.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 modules/fnott/hm.nix diff --git a/modules/fnott/hm.nix b/modules/fnott/hm.nix new file mode 100644 index 00000000..1d274227 --- /dev/null +++ b/modules/fnott/hm.nix @@ -0,0 +1,39 @@ +{ lib, config, ... }: +{ + options.stylix.targets.fnott.enable = + config.lib.stylix.mkEnableTarget "Fnott" true; + + config.services.fnott.settings = + lib.mkIf (config.stylix.enable && config.stylix.targets.fnott.enable) + ( + let + font = config.stylix.fonts.sansSerif.name; + fg = c: "${c}ff"; + bg = + c: + "${c}${ + lib.toHexString ( + ((builtins.floor (config.stylix.opacity.popups * 100 + 0.5)) * 255) / 100 + ) + }"; + in + with config.lib.stylix.colors; + { + main = { + title-font = font; + summary-font = font; + body-font = font; + + title-color = fg base05; + summary-color = fg base05; + body-color = fg base05; + progress-bar-color = fg base02; + background = bg base00; + }; + + low.border-color = fg base0B; + normal.border-color = fg base0E; + critical.border-color = fg base08; + } + ); +}