#I have made a frameless window, and i am wondering how to make my own close app button

1 messages · Page 1 of 1 (latest)

silent bronze
#

with html

#

what do you mean by make it function?

#

you capture click event

#

in html

frigid nimbus
#

You want the entire electron app to be closed?

silent bronze
#

then send ipc event to main

#

to close/minimize/maximize app

frigid nimbus
#

As @silent bronze suggested, send a IPC event and close the app in main.

silent bronze
#

you can close it by window reference

charred bluff
neon mirage
#

Why not use overlay titlebar API?

#

It's available for Windows/macOS.

neon mirage
#

The height could be adjusted, but I can see now why you want to use a custom button instead.