rice syntax

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-12-02 20:42:49 +01:00
parent 837e64c377
commit 683913e0fe

View File

@@ -6,8 +6,7 @@ pkgs: rec {
rounding = 3;
gap-size = 5;
border-width = 2;
color =
let
color = let
dark = (-0.5);
bright = (0.5);
alter-set = let f = lib.alter-luminace-hex; in color-name: color-value: { base = color-value; dark = f color-value dark; bright = f color-value bright; };
@@ -26,7 +25,7 @@ pkgs: rec {
facolor = builtins.mapAttrs alter-set (builtins.fromJSON (builtins.readFile ./colors.json)).to_alter;
fbcolor = (builtins.fromJSON (builtins.readFile ./colors.json)).base;
fcolor = facolor // fbcolor;
xcolor = with ccolor; with fcolor; rec {
xcolor = with ccolor; with fcolor; {
background = "#000000";
# foreground = "#dddddd";
# accent = blue;