feat(canvas): 画布主题 - 与工作台外观隔离并提高连线对比
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
da0531f6eb
commit
cb405e9b6a
54 files changed
+207
-134
No files matched your search
@@ -8,7 +8,7 @@ import {
|
||||
type PortraitTextureSettingKey,
|
||||
type PortraitTextureSettings,
|
||||
} from "@/lib/canvas/canvas-portrait-texture";
|
||||
import { useThemeStore } from "@/stores/use-theme-store";
|
||||
import { useActiveTheme } from "@/stores/canvas/use-canvas-theme-store";
|
||||
|
||||
type CanvasPortraitTexturePopoverProps = {
|
||||
value: unknown;
|
||||
@@ -17,7 +17,7 @@ type CanvasPortraitTexturePopoverProps = {
|
||||
};
|
||||
|
||||
export function CanvasPortraitTexturePopover({ value, placement = "topLeft", onChange }: CanvasPortraitTexturePopoverProps) {
|
||||
const theme = canvasThemes[useThemeStore((state) => state.theme)];
|
||||
const theme = canvasThemes[useActiveTheme()];
|
||||
const settings = normalizePortraitTextureSettings(value);
|
||||
|
||||
const updateSetting = (key: PortraitTextureSettingKey, nextValue: string) => {
|
||||
|
||||
Reference in new issue
Block a user