style(electron): make custom window title bar fully transparent

This commit is contained in:
Johannes Millan 2026-01-21 20:45:52 +01:00
parent cd5151f4f7
commit d578beb52b

View file

@ -33,9 +33,9 @@ let mainWin: BrowserWindow;
* Semi-transparent to ensure window controls are always visible.
*/
const getTitleBarColor = (isDark: boolean): string => {
// Dark: matches --bg (#131314) with 95% opacity
// Light: matches --bg (#f8f8f7) with 95% opacity
return isDark ? 'rgba(19, 19, 20, 0.95)' : 'rgba(248, 248, 247, 0.95)';
// Dark: matches --bg (#131314) with 0% opacity (fully transparent)
// Light: matches --bg (#f8f8f7) with 0% opacity (fully transparent)
return isDark ? 'rgba(19, 19, 20, 0)' : 'rgba(248, 248, 247, 0)';
};
const mainWinModule: {