Skip to content

Instantly share code, notes, and snippets.

@tarik02
Created April 13, 2026 15:44
Show Gist options
  • Select an option

  • Save tarik02/0b3ba095b05bf351fad95193de25b8b1 to your computer and use it in GitHub Desktop.

Select an option

Save tarik02/0b3ba095b05bf351fad95193de25b8b1 to your computer and use it in GitHub Desktop.
Electron linux reproduce titleBarOverlay color
import { app, BrowserWindow } from 'electron';
function createWindow() {
const win = new BrowserWindow({
width: 1200,
height: 800,
titleBarStyle: 'hidden',
titleBarOverlay: {
height: 40,
color: 'rgba(0,0,0,0)', // color: 'rgba(1,0,0,0)', works!
},
});
win.loadFile('index.html');
}
app.whenReady().then(createWindow);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment