force light mode
This commit is contained in:
parent
a567ca787b
commit
ca730e0b35
|
|
@ -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} />
|
||||
|
|
|
|||
|
|
@ -117,6 +117,10 @@ ol {
|
|||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
& img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
#toggle-canvas {
|
||||
top: 10px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue