wexond / browser-base

Modern and feature-rich web browser base based on Electron
https://wexond.net
2.68k stars 406 forks source link

Enable transparency on the browser window #611

Closed anesuc closed 3 years ago

anesuc commented 3 years ago

Is your feature request related to a problem? Please describe. I have been trying to enable transparency on the browser window itself with no success. I have set transparent: true, on BrowserWindow set enable-transparent-visuals (and disable-gpu) with appendSwitch and as arguments as well (in package.json and after building when running the executable. I have removed all background colours from css and themes just to see if I can get it to work.

Describe the solution you'd like Any suggestions are welcome. Ofcause an API would be nice, but I don't mind.

Describe alternatives you've considered I have described them above

Additional context Tested this on Linux. I am aware the support of this can be weird on Linux. However, I have gotten this to work with the same Electron version in another App.

anesuc commented 3 years ago

Nevermind got it. Didn't add a delay when window opens!