From 89ebfe959b94f3a9828f97cca8def137a6243aae Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Mon, 12 May 2025 11:40:25 +0200 Subject: [PATCH] wayprompt: drop generation of 0x prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 :-). --- modules/wayprompt/hm.nix | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/modules/wayprompt/hm.nix b/modules/wayprompt/hm.nix index 15ed39ec..422ac021 100644 --- a/modules/wayprompt/hm.nix +++ b/modules/wayprompt/hm.nix @@ -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; + }; }; }