refactor(module/taskwarrior/hm): inline variables

This commit is contained in:
NAHO 2024-02-13 19:04:46 +01:00
parent e2e9ea92c6
commit c8a2e5b032
No known key found for this signature in database
GPG key ID: 1D2207B4D979BE3E

View file

@ -33,13 +33,7 @@
convert = component: toString (scale component); convert = component: toString (scale component);
factor = 6.0 / 255.0; factor = 6.0 / 255.0;
scale = component: builtins.floor (lib.toInt component * factor + 0.5); scale = component: builtins.floor (lib.toInt component * factor + 0.5);
in red: green: blue: let in red: green: blue: "rgb${convert red}${convert green}${convert blue}";
taskwarrior = {
blue = convert blue;
green = convert green;
red = convert red;
};
in "rgb${taskwarrior.red}${taskwarrior.green}${taskwarrior.blue}";
in config.lib.stylix.colors { in config.lib.stylix.colors {
extension = "theme"; extension = "theme";
template = ./template.theme.mustache; template = ./template.theme.mustache;