sidneys / electron-titlebar-windows

Adds the Windows 10 ModernUI (Metro)-style titlebars to any Electron-based desktop app.
MIT License
140 stars 23 forks source link

Options to exclude icons #5

Open JakeDluhy opened 7 years ago

JakeDluhy commented 7 years ago

We have a use case where we only want to show the icon to close the app. Would you accept a PR where I expose an exclude option that supports excluding icons?

reuzurq commented 2 years ago

You can add icons by editing node-modules/electron-titlebar-windows/html/index.html, then by editing node-modules/electron-titlebar-windows/lib/titlebar.js you can add event listener to your new icon or anything else you put there.

Hope this helps :D