photon icon indicating copy to clipboard operation
photon copied to clipboard

Component - alert & confirm dialog

Open luin opened this issue 10 years ago • 1 comments

In OS X, the modal dialog shows below the title bar: image image

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:

image

I think it would be of great help if photon can offer a dialog component :laughing:

luin avatar Oct 18 '15 06:10 luin

@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:

preview

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

developit avatar Oct 18 '15 23:10 developit