11.stylix/modules/wayprompt/hm.nix
pancho horrillo 8d829119c5
wayprompt: drop '-hex' suffix on single color value (#1449)
To reduce the surprise factor when comparing to the other color specs in
this file.

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NukDokPlex <nukdokplex@gmail.com>
2025-06-03 18:09:02 +02:00

35 lines
821 B
Nix

{ mkTarget, lib, ... }:
mkTarget {
name = "wayprompt";
humanName = "Wayprompt";
configElements =
{ colors, opacity }:
let
opacity' = lib.toHexString (builtins.ceil (opacity.popups * 255));
in
{
programs.wayprompt.settings.colours = with colors; {
background = "${base00}${opacity'}";
border = base0D;
text = base05;
error-text = base08;
pin-background = base01;
pin-border = base05;
pin-square = base05;
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;
cancel-button = red;
cancel-button-border = red;
cancel-button-text = base00;
};
};
}