E
E
elyourn2016-10-10 18:35:45
JavaScript
elyourn, 2016-10-10 18:35:45

electron. How to overlay the dock panel with a new window?

Can't close dockpanel on mac os, code:

var  {width, height} = electron.screen.getPrimaryDisplay().workAreaSize;
var win= new BrowserWindow({
 width: width,
 height: height,
 transparent: true,
 frame: false, 
 alwaysOnTop: true
});
win.setMenu(null);

alwaysOnTop - does not overlap.
Implementation example in telegram:
061bad1fa7f14312988f15e3cafedb9c.jpg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question