min icon indicating copy to clipboard operation
min copied to clipboard

custom full screen button (top-left)

Open leon-layas opened this issue 1 year ago • 1 comments

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

leon-layas avatar Jul 05 '24 06:07 leon-layas

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.

PalmerAL avatar Jul 06 '24 21:07 PalmerAL