From 7ca5f4b11cb3036fecfa4cdc529b63b1f6e1a4de Mon Sep 17 00:00:00 2001 From: feng Date: Sat, 12 Apr 2025 22:12:03 +0900 Subject: [PATCH] fix: pass the new top pick color props properly --- packages/excalidraw/components/App.tsx | 2 ++ packages/excalidraw/index.tsx | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index 276cde027..e75753b7d 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -741,6 +741,8 @@ class App extends React.Component { objectsSnapModeEnabled = false, theme = defaultAppState.theme, name = `${t("labels.untitled")}-${getDateTime()}`, + strokeColorTopPicks, + backgroundColorTopPicks, } = props; this.state = { ...defaultAppState, diff --git a/packages/excalidraw/index.tsx b/packages/excalidraw/index.tsx index 5ea746754..6e42ab628 100644 --- a/packages/excalidraw/index.tsx +++ b/packages/excalidraw/index.tsx @@ -53,6 +53,8 @@ const ExcalidrawBase = (props: ExcalidrawProps) => { renderEmbeddable, aiEnabled, showDeprecatedFonts, + strokeColorTopPicks, + backgroundColorTopPicks, } = props; const canvasActions = props.UIOptions?.canvasActions; @@ -143,6 +145,8 @@ const ExcalidrawBase = (props: ExcalidrawProps) => { renderEmbeddable={renderEmbeddable} aiEnabled={aiEnabled !== false} showDeprecatedFonts={showDeprecatedFonts} + strokeColorTopPicks={strokeColorTopPicks} + backgroundColorTopPicks={backgroundColorTopPicks} > {children}