mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 17:32:18 +00:00
feat: Implement custom window controls and theme management for Electron app
This commit is contained in:
7 files changed
+243
-23
No files matched your search
@@ -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 = () => {
|
||||
|
||||
Reference in new issue
Block a user