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 { SimController } from "@/physics/PhysicsControls";
|
||||||
import { HTMLShapeUtil } from "@/shapes/HTMLShapeUtil";
|
import { HTMLShapeUtil } from "@/shapes/HTMLShapeUtil";
|
||||||
|
|
||||||
|
|
@ -22,8 +22,9 @@ export function Canvas({ shapes }: { shapes: TLShape[]; }) {
|
||||||
<Tldraw
|
<Tldraw
|
||||||
components={components}
|
components={components}
|
||||||
shapeUtils={[HTMLShapeUtil]}
|
shapeUtils={[HTMLShapeUtil]}
|
||||||
onMount={() => {
|
onMount={(editor: Editor) => {
|
||||||
window.dispatchEvent(new CustomEvent('editorDidMountEvent'));
|
window.dispatchEvent(new CustomEvent('editorDidMountEvent'));
|
||||||
|
editor.user.updateUserPreferences({ isDarkMode: false })
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SimController shapes={shapes} />
|
<SimController shapes={shapes} />
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,10 @@ ol {
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
& img {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#toggle-canvas {
|
#toggle-canvas {
|
||||||
top: 10px;
|
top: 10px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue