-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(visualizer): update block colors
- Loading branch information
Showing
10 changed files
with
175 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
client/src/features/visualizer-threejs/NovaVisualizerWrapper.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from "react"; | ||
import { useGetThemeMode } from "~/helpers/hooks/useGetThemeMode.js"; | ||
import { VisualizerRouteProps } from "~/app/routes/VisualizerRouteProps.js"; | ||
import { RouteComponentProps } from "react-router-dom"; | ||
import NovaVisualizer from "./VisualizerInstance"; | ||
|
||
export default function NovaVisualizerWrapper(props: RouteComponentProps<VisualizerRouteProps>): React.JSX.Element { | ||
const theme = useGetThemeMode(); | ||
|
||
return <NovaVisualizer key={theme} {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
client/src/features/visualizer-threejs/wrapper/ColorPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React, { memo } from "react"; | ||
|
||
const ColorPanel = ({ label, color }: { label: string; color: string }): React.JSX.Element => ( | ||
<div className="key-panel-item"> | ||
<div | ||
className="key-marker" | ||
style={{ | ||
backgroundColor: color, | ||
}} | ||
/> | ||
<div className="key-label">{label}</div> | ||
</div> | ||
); | ||
|
||
export default memo(ColorPanel); |
Oops, something went wrong.