Skip to content

Commit

Permalink
Add type color for colors (#2898)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyballentine authored May 22, 2024
1 parent 07db5bc commit afbba0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
--type-color-number: #3182ce;
--type-color-string: #10b52c;
--type-color-bool: #319795;
--type-color-color: #fff;
--type-color-torch: #dd6b20;
--type-color-onnx: #63b3ed;
--type-color-ncnn: #ed64a6;
Expand Down Expand Up @@ -162,6 +163,8 @@
/* controls */
--controls-bg: var(--theme-300-a75);
--controls-bg-hover: var(--theme-400);

--type-color-color: #000;
}

// Default theme (copied from Chakra UI)
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/helpers/accentColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const colorList = () => {
type: evaluate(new NamedExpression('bool'), scope),
color: getComputedColor('--type-color-bool'),
},
{
type: evaluate(new NamedExpression('Color'), scope),
color: getComputedColor('--type-color-color'),
},
{
type: evaluate(new NamedExpression('PyTorchModel'), scope),
color: getComputedColor('--type-color-torch'),
Expand Down

0 comments on commit afbba0d

Please sign in to comment.