O. Shehab
O. Shehab

Reputation: 81

Electron - Make Windows Title bar Looks like Muno Title bar

I want to make the title bar of Windows Looks Like Muno Title bar

I tried to use This title bar
but it don't show Anything

Please help

Upvotes: 0

Views: 1148

Answers (1)

Glenn de boer
Glenn de boer

Reputation: 76

He, I am the developer of Muno. Maybe I can help.

I use browserWindow options:

const {width, height} = electron.screen.getPrimaryDisplay().workAreaSize;

let options = {
   show: false,
   frame: false,
   center: !isDev,
   titleBarStyle: 'hidden',
   width: Math.round((width / 100) * 85),
   height: Math.round((height / 100) * 85),
};

The other part is just CSS and I used this snippet for the traffic light buttons: https://codepen.io/atdrago/pen/yezrBR

Hope this helps. What are you making?

Upvotes: 6

Related Questions