Skip to content

Commit

Permalink
Update palette to use hex6 (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite authored Oct 22, 2024
1 parent 1eeceb1 commit 56bc79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/common/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ export class Color {
};

[50, 100, 200, 300, 400].forEach((level) => {
palette.colors[level] = this.lighten(intensityMap[level]).toString();
palette.colors[level] = this.lighten(intensityMap[level]).toHex6();
});

[600, 700, 800, 900, 950].forEach((level) => {
palette.colors[level] = this.darken(intensityMap[level]).toString();
palette.colors[level] = this.darken(intensityMap[level]).toHex6();
});

return palette;
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/editor/Canvas/Hotkeys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const HotkeysArea = ({ children, scale, setScale }: HotkeysAreaProps) => {

useHotkeys('space', () => (editorEngine.mode = EditorMode.PAN), { keydown: true });
useHotkeys('space', () => (editorEngine.mode = EditorMode.DESIGN), { keyup: true });

useHotkeys('alt', () => editorEngine.elements.showMeasurement(), { keydown: true });
useHotkeys('alt', () => editorEngine.overlay.removeMeasurement(), { keyup: true });

Expand Down

0 comments on commit 56bc79d

Please sign in to comment.