wayprompt: drop generation of 0x prefixes

Sorry I wasn’t clear on the Home Manager module documentation: there is
no need to prepend the '0x' prefix to the hex values, the format handler
takes care of that.

Also note that I just dropped the `lib.mapAttrs` portion, but the
automatic formatter had other ideas :-).
This commit is contained in:
pancho horrillo 2025-05-12 11:40:25 +02:00 committed by awwpotato
parent 6b8309550e
commit 89ebfe959b

View file

@ -7,29 +7,27 @@ in
config.lib.stylix.mkEnableTarget "wayprompt" true;
config = lib.mkIf (config.stylix.enable && cfg.enable) {
programs.wayprompt.settings.colours =
with config.lib.stylix.colors;
lib.mapAttrs (_: color: "0x${color}") {
background = base00;
border = base0D;
text = base05;
error-text = base08;
programs.wayprompt.settings.colours = with config.lib.stylix.colors; {
background = base00;
border = base0D;
text = base05;
error-text = base08;
pin-background = base01;
pin-border = base05;
pin-square = base05;
pin-background = base01;
pin-border = base05;
pin-square = base05;
ok-button = green;
ok-button-border = green;
ok-button-text = base00;
ok-button = green;
ok-button-border = green;
ok-button-text = base00;
not-ok-button = yellow;
not-ok-button-border = yellow;
not-ok-button-text = base00;
not-ok-button = yellow;
not-ok-button-border = yellow;
not-ok-button-text = base00;
cancel-button = red;
cancel-button-border = red;
cancel-button-text = base00;
};
cancel-button = red;
cancel-button-border = red;
cancel-button-text = base00;
};
};
}