photon
photon copied to clipboard
Component - alert & confirm dialog
In OS X, the modal dialog shows below the title bar:

Electron does a good job that shows alert and confirm dialog (by invoke alert() and confirm()) following the native style. However when using the custom title bar component of photon, the native dialog will become very strange:

I think it would be of great help if photon can offer a dialog component :laughing:
@luin This could totally work with the HTML5 <dialog> element proposal I made in #8 / #34.
Here's a working JSFiddle with the small customization needed: jsfiddle.net/developit/636kfvv5
Preview:

Note that the grey backdrop is optional. It is not used if you call <dialog>.show() instead of <dialog>.showModal().