From fff15222d9f1b211a35d0e1978bbba8545016d61 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Sun, 16 Mar 2025 06:58:50 -0500 Subject: [PATCH] feat(core): add transparent as default shape fill (#10801) --- blocksuite/affine/model/src/themes/default.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocksuite/affine/model/src/themes/default.ts b/blocksuite/affine/model/src/themes/default.ts index ed70a6418..ebc6f58e3 100644 --- a/blocksuite/affine/model/src/themes/default.ts +++ b/blocksuite/affine/model/src/themes/default.ts @@ -49,6 +49,7 @@ const NoteBackgroundColorMap = { Black: getColorByKey('edgeless/note/black'), Grey: getColorByKey('edgeless/note/grey'), White: getColorByKey('edgeless/note/white'), + Transparent: Transparent, } as const; const Palettes: Palette[] = [ @@ -78,7 +79,7 @@ const StrokeColorShortPalettes: Palette[] = [ ...buildPalettes(StrokeColorShortMap), ] as const; -const FillColorShortMap = { ...Medium, Black, White } as const; +const FillColorShortMap = { ...Medium, Black, White, Transparent } as const; const FillColorShortPalettes: Palette[] = [ ...buildPalettes(FillColorShortMap),