force light mode

This commit is contained in:
Orion Reed 2024-03-29 19:45:29 -07:00
parent a567ca787b
commit ca730e0b35
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { Tldraw, TLShape, TLUiComponents } from "@tldraw/tldraw";
import { Editor, Tldraw, TLShape, TLUiComponents } from "@tldraw/tldraw";
import { SimController } from "@/physics/PhysicsControls";
import { HTMLShapeUtil } from "@/shapes/HTMLShapeUtil";
@ -22,8 +22,9 @@ export function Canvas({ shapes }: { shapes: TLShape[]; }) {
<Tldraw
components={components}
shapeUtils={[HTMLShapeUtil]}
onMount={() => {
onMount={(editor: Editor) => {
window.dispatchEvent(new CustomEvent('editorDidMountEvent'));
editor.user.updateUserPreferences({ isDarkMode: false })
}}
>
<SimController shapes={shapes} />

View File

@ -117,6 +117,10 @@ ol {
&:hover {
opacity: 1;
}
& img {
width: 40px;
height: 40px;
}
}
#toggle-canvas {
top: 10px;