Skip to content

Commit

Permalink
fix: Render patterns in a style consistent with equivalent exprs.
Browse files Browse the repository at this point in the history
Previously they were rendered in black.
  • Loading branch information
dhess committed Oct 27, 2022
1 parent 88eef4c commit 986024d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/TreeReactFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ const flavorClasses = (flavor: NodeFlavor): string => {
return "border-yellow-primary ring-yellow-primary";

case "FlavorPatternCon":
return "border-black-primary ring-black-primary bg-white-primary";
return "border-green-primary ring-green-primary bg-white-primary";
case "FlavorPatternBind":
return "border-black-primary ring-black-primary bg-white-primary".concat(
return "border-blue-quaternary ring-blue-quaternary bg-white-primary".concat(
commonHoverClasses
);
case "FlavorPatternApp":
return "border-black-primary ring-black-primary bg-black-primary";
return "border-blue-tertiary ring-blue-tertiary bg-blue-tertiary";
}
};

Expand Down Expand Up @@ -318,15 +318,15 @@ const flavorLabelClasses = (flavor: NodeFlavor): string => {
syntaxClasses
);
case "FlavorPatternCon":
return "bg-black-primary border-black-primary text-white-primary".concat(
return "bg-green-primary border-green-primary text-white-primary".concat(
exprClasses
);
case "FlavorPatternBind":
return "bg-black-primary border-black-primary text-white-primary".concat(
return "bg-blue-quaternary border-blue-quaternary text-white-primary".concat(
exprClasses
);
case "FlavorPatternApp":
return "font-code bg-black-primary border-black-primary text-white-primary".concat(
return "font-code bg-blue-tertiary border-blue-tertiary text-white-primary".concat(
syntaxClasses
);
}
Expand Down Expand Up @@ -385,11 +385,11 @@ const flavorEdgeClasses = (flavor: NodeFlavor): string => {
case "FlavorPattern":
return "stroke-yellow-primary stroke-[0.25rem] z-10";
case "FlavorPatternCon":
return "stroke-black-primary stroke-[0.25rem] z-10";
return "stroke-green-primary stroke-[0.25rem] z-10";
case "FlavorPatternBind":
return "stroke-black-primary stroke-[0.25rem] z-10";
return "stroke-blue-quaternary stroke-[0.25rem] z-10";
case "FlavorPatternApp":
return "stroke-black-primary stroke-[0.25rem] z-10";
return "stroke-blue-tertiary stroke-[0.25rem] z-10";
}
};

Expand Down

0 comments on commit 986024d

Please sign in to comment.