chore(editor): use colors from default theme instead (#9425)

This commit is contained in:
fundon
2024-12-30 09:41:00 +00:00
parent 47ba0a8a32
commit 580e3eb13c
5 changed files with 14 additions and 14 deletions
@@ -28,7 +28,7 @@ import {
Vec,
} from '@blocksuite/global/utils';
import type { Color } from '../../themes/index.js';
import { type Color, DefaultTheme } from '../../themes/index';
export type BrushProps = BaseElementProps & {
/**
@@ -131,7 +131,7 @@ export class BrushElementModel extends GfxPrimitiveElementModel<BrushProps> {
}
@field()
accessor color: Color = '#000000';
accessor color: Color = DefaultTheme.black;
@watch((_, instance) => {
instance['_local'].delete('commands');