mirror of
https://github.com/danth/stylix
synced 2024-11-24 21:23:24 +00:00
refactor(module/taskwarrior/hm): inline variables
This commit is contained in:
parent
e2e9ea92c6
commit
c8a2e5b032
1 changed files with 1 additions and 7 deletions
|
@ -33,13 +33,7 @@
|
|||
convert = component: toString (scale component);
|
||||
factor = 6.0 / 255.0;
|
||||
scale = component: builtins.floor (lib.toInt component * factor + 0.5);
|
||||
in red: green: blue: let
|
||||
taskwarrior = {
|
||||
blue = convert blue;
|
||||
green = convert green;
|
||||
red = convert red;
|
||||
};
|
||||
in "rgb${taskwarrior.red}${taskwarrior.green}${taskwarrior.blue}";
|
||||
in red: green: blue: "rgb${convert red}${convert green}${convert blue}";
|
||||
in config.lib.stylix.colors {
|
||||
extension = "theme";
|
||||
template = ./template.theme.mustache;
|
||||
|
|
Loading…
Reference in a new issue