bemenu: fix undefined variable error (#1390)

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

Reviewed-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
losnappas 2025-05-27 23:03:55 +03:00 committed by GitHub
parent dedf5de579
commit e38a646e5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,11 @@ mkTarget {
}
)
(
{ colors, opacity }:
{
colors,
opacity,
cfg,
}:
{
programs.bemenu.settings =
with colors.withHashtag;
@ -63,8 +67,8 @@ mkTarget {
nf = "${base05}"; # Normal fg
scf = "${base03}"; # Scrollbar fg
ab = "${if alternate then base00 else base01}"; # Alternate bg
af = "${if alternate then base04 else base05}"; # Alternate fg
ab = "${if cfg.alternate then base00 else base01}"; # Alternate bg
af = "${if cfg.alternate then base04 else base05}"; # Alternate fg
};
}
)