You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: native liquid glass tinting and theme-controlled appearance (#39)
* feat: native liquid glass tinting, theme-controlled appearance, and focus veil
Use electron-liquid-glass tintColor API to tint the glass material natively
on macOS instead of CSS overlays. Switch to darkkatarsis fork which adds
hasKeyAppearance isa-swizzle to prevent glass state change on window blur.
- Add OKLCh-to-hex-RGBA color conversion utility (src/lib/color-utils.ts)
- Add glass IPC: set-tint-color (native tint) and set-theme (nativeTheme.themeSource)
- Sync app theme to main process so glass light/dark follows app setting, not OS
- Bootstrap theme from localStorage in preload for correct first-frame appearance
- Add subtle unfocused veil overlay on macOS (darken/brighten when window inactive)
- Unify light mode glass sidebar to use dark text (same as Windows)
- Fall back to CSS overlay tinting on non-macOS platforms
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: harden glass tinting from PR review feedback
- Guard clampByte against NaN/Infinity inputs (corrupted space data)
- Validate tintColor hex format in IPC handler before passing to native
- Fix unfocused veil transition: keep element mounted, toggle opacity
- Align preload theme default with useSettings ("dark") to avoid flash
- Add unit tests for oklchToHexRGBA and computeGlassTintColor
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments