-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improved file dialog consistency across OSes #2971
Conversation
This Pull Request targets Consider targeting |
@barmac Every time I start thinking I understand how mac does this, I get fooled. What does the dialog look like when you close a modified diagram (changes not saved) |
I'll check on my machine how the dialog template looks like in the debugger. |
As I found out, the way MacOS handles this is expected. It's part of the Human Interface Guidelines from Apple. Cf. electron/electron#23276 (comment) and https://developer.apple.com/design/human-interface-guidelines/macos/windows-and-views/alerts/
So ✅ from me, nothing to change for Mac specifically. |
b8ec0da
to
31a0a82
Compare
Works on Linux now (ordering as in my previous comment, but now LGTM ✔️ |
@barmac Unfortunately that's not exactly possible. If there's only two buttons it'll be horizontally stacked, the only reason the DMN one is vertical is the checkbox 😆 Unless you mean we should also include the checkbox. |
This, and also use the |
Closes #2970
Artefacts
Could you have a look if the appropriate action button is focused and potentially colored in for both the empty file dialog (open an empty file) as well as the saveFileDialog (edit a saved bpmn diagram and close without saving).
@barmac for mac
@MaxTru for linux
Please do not merge until we see it's good for both :D. Windows works as expected.