mirror of
https://github.com/danth/stylix
synced 2024-11-26 14:10:22 +00:00
1ff9d37d27
home-manager provides a programs.fzf.colors option to provide colors. This module basically reimplemented the logic Home Manager has as well.
23 lines
566 B
Nix
23 lines
566 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.stylix.targets.fzf = {
|
|
enable = config.lib.stylix.mkEnableTarget "Fzf" true;
|
|
};
|
|
|
|
config = lib.mkIf (config.stylix.enable && config.stylix.targets.fzf.enable) {
|
|
programs.fzf.colors = with config.lib.stylix.colors.withHashtag; {
|
|
"bg" = base00;
|
|
"bg+" = base01;
|
|
"fg" = base04;
|
|
"fg+" = base06;
|
|
"header" = base0D;
|
|
"hl" = base0D;
|
|
"hl+" = base0D;
|
|
"info" = base0A;
|
|
"marker" = base0C;
|
|
"pointer" = base0C;
|
|
"prompt" = base0A;
|
|
"spinner" = base0C;
|
|
};
|
|
};
|
|
}
|