feat: add quick template functionality to NodePalette and enhance node creation experience

This commit is contained in:
catlog22
2026-02-05 09:57:20 +08:00
parent 0664937b98
commit a19ef94444
9 changed files with 293 additions and 38 deletions

View File

@@ -364,6 +364,18 @@ if (typeof window !== 'undefined') {
);
}
});
// Apply initial theme immediately (before localStorage rehydration)
// This ensures gradient attributes are set from the start
const state = useAppStore.getState();
applyThemeToDocument(
state.resolvedTheme,
state.colorScheme,
state.customHue,
state.gradientLevel,
state.enableHoverGlow,
state.enableBackgroundAnimation
);
}
// Selectors for common access patterns