{ pkgs, lib, config, ... }: let inherit (config.colorScheme) ui editor common; # fuzzel wants RRGGBBAA with no leading '#'. rgba = c: lib.toLower (lib.removePrefix "#" c) + "ff"; in { programs.fuzzel = { enable = true; settings = { main = { font = lib.mkForce "${config.theme.font.family}:size=${toString config.theme.font.size}"; }; colors = { background = rgba ui.bg; text = rgba editor.fg; match = rgba common.accent.tint; selection = rgba ui.panel.bg; selection-text = rgba editor.fg; selection-match = rgba common.accent.tint; border = rgba ui.line; }; border = { radius = 0; }; }; }; }