11.stylix/modules/fuzzel/hm.nix
skrmc ebb238f14d
Some checks failed
Label Merge Conflicts / conflicts (push) Has been cancelled
fuzzel: use base02 for selection background (#2214)
Link: https://github.com/nix-community/stylix/pull/2214

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Karun Sandhu <karun@sndh.dev>
(cherry picked from commit 30054cca07)
2026-02-22 20:26:30 +01:00

40 lines
1 KiB
Nix

{ mkTarget, lib, ... }:
mkTarget {
config = [
(
{ fonts }:
{
programs.fuzzel.settings.main.font =
"${fonts.sansSerif.name}:size=${toString fonts.sizes.popups}";
}
)
(
{ colors, opacity }:
let
opacity' = lib.toHexString (builtins.ceil (opacity.popups * 255));
in
{
programs.fuzzel.settings.colors = with colors; {
background = "${base00-hex}${opacity'}";
text = "${base05-hex}ff";
placeholder = "${base03-hex}ff";
prompt = "${base05-hex}ff";
input = "${base05-hex}ff";
match = "${base0A-hex}ff";
selection = "${base02-hex}ff";
selection-text = "${base05-hex}ff";
selection-match = "${base0A-hex}ff";
counter = "${base06-hex}ff";
border = "${base0D-hex}ff";
};
}
)
(
{ polarity, icons }:
{
programs.fuzzel.settings.main."icon-theme" =
if (polarity == "dark") then icons.dark else icons.light;
}
)
];
}