feat: Implement custom window controls and theme management for Electron app

This commit is contained in:
LAPTOP-O016UC3M\Qi Chen committed 2025-12-08 16:15:05 +08:00
1 parent bb402b2ad5
commit 8b40c8edce
7 files changed
+243 -23

No files matched your search

+3
View File
@@ -25,6 +25,9 @@ const applyThemeTokens = (theme: 'light' | 'dark', primaryColor: string) => {
? '220 40% 96%'
: (!Number.isNaN(lightness) && lightness < 55 ? '0 0% 98%' : '222 47% 12%');
root.style.setProperty('--accent-foreground', accentForeground);
// Sync with native window title bar (Electron)
window.nebula?.setTheme?.(theme);
};
export const useSettingsState = () => {