From 31feb38def78fc4ef5d7610fed804faa3f57805a Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:33:08 +0000 Subject: [PATCH] fix: sync color scheme with excalidraw --- .../editor/components/excalidraw/excalidraw-view.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx b/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx index b32b702a..f5e5b171 100644 --- a/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx +++ b/apps/client/src/features/editor/components/excalidraw/excalidraw-view.tsx @@ -73,7 +73,7 @@ export default function ExcalidrawView(props: NodeViewProps) { elements: excalidrawAPI?.getSceneElements(), appState: { exportEmbedScene: true, - exportWithDarkMode: computedColorScheme == 'light' ? false : true, + exportWithDarkMode: computedColorScheme != 'light', }, files: excalidrawAPI?.getFiles(), }); @@ -147,6 +147,7 @@ export default function ExcalidrawView(props: NodeViewProps) { ...excalidrawData, scrollToContent: true, }} + theme={computedColorScheme} /> @@ -202,7 +203,7 @@ export default function ExcalidrawView(props: NodeViewProps) { - Double-click to edit excalidraw diagram + Double-click to edit Excalidraw diagram