minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
7.87k stars 696 forks source link

custom full screen button (top-left) #2460

Open leon-layas opened 2 months ago

leon-layas commented 2 months ago

Hi, I would like it that when I click the full screen button, that the window open's up to a specific size in a particular position?

I actually plan to have, four top-left button's (close, min, full, and custom).

Please can you kindly give me some pointers and the files I would need to modify to achieve this.

Thanks

PalmerAL commented 2 months ago

The windows and Linux controls are here: https://github.com/minbrowser/min/blob/master/js/windowControls.js. The mac ones are the native OS controls (but you could put a button next to them - look in index.html).

You'll need to send an IPC message to the main process, then add a listener there to call createWindow.