tomrule007 / grinding

Record your time working towards something
MIT License
0 stars 0 forks source link

Switch window to transparent. #7

Closed tomrule007 closed 5 years ago

tomrule007 commented 5 years ago

Requires modifying browserWindow object initialization properties.

https://github.com/tomrule007/grinding/blob/d4de3cf68d2f0ff7cfe46e94ed22d1f944fd2f71/src/electron-starter.js#L20-L28

documentation can be found at:

Says there is a bug with linux requiring extra flags to be included to disable gpu (though links to the bug say it has been fixed, so I am not sure)

tomrule007 commented 5 years ago

Found a solution: https://stackoverflow.com/questions/53538215/cant-succeed-in-making-transparent-window-in-electron-javascript

adding a small delay after app "ready" event fires before creating the window fixes the problem.

says you need at least 300ms but it seems to be working on 100ms