-
Notifications
You must be signed in to change notification settings - Fork 209
Center text/save space on message dialogs? #2929
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
Comments
Hi @mickaelistria ![]() |
@mickaelistria, @SougandhS, Thanks for that! |
Removes unwanted space and aligns message content & buttons to center Fixes : eclipse-platform#2929
Do we have style guidelines for such as thing? https://learn.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/dialogs I've never seen a dialog with centered text and I question whether that's really better or easier to read. |
-1. I don't like that new layout at all. Also consider message dialogs with icons. Plus there's a high risk that this breaks a lot of message dialogs with a custom area or other customizations. (If not "breaks", at least "makes them look inconsistent".) Please don't do this. |
Can you please provide some links to this recommendations and habits? And can you show what the "current state of art" is? |
cc Also, If we were to borrow ideas from the Dialogue Controls guidelines as suggested by @merks ,
I think a little more clarification on these subjects can help validate or solve the issue. |
I should note though that different platforms have different conventions. E.g, the order of OK/Cancel is different on different platforms... |
The 3 reference documents (that I think every Platform UI stakeholder needs to have as bookmark) are
The first one aligns left, while the 2 other ones do center. So there is no input to build a consensus. Let's be conservative here, and just start by saving the space without really touching the alignment. |
FWIW, the order of buttons is not much related to the initial discussion. If someone wishes to discuss this further, I'd recommend opening a separate issue. |
I just did this search: I see that MINIMUM_MESSAGE_AREA_WIDTH is used in multiple dialogs. And even is API. |
That wouldn't hurt in theory, but because compilers inline constant values in consumers' bytecode, it's considered a breaking API change to change a constant value for primitive or string types. There are many consumers of this constant into the wild: https://github.com/search?q=MINIMUM_MESSAGE_AREA_WIDTH+language%3AJava&type=code&l=Java , which would either get the new value or not depending on the version of JFace in their target-platform when compiling... But changing it would for sure update the MessageDialog as it's compiled simultaneously. |
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Removed unnecessary spacing in the message dialog to improve visual alignment and create a more compact, cleaner layout. Fixes : eclipse-platform#2929
Let's make sure issue is not already fixed in latest builds first.
Suggestion
From a fresh installation and clean workspace:
I reach state Get any message dialog with, for example an edit on a file and trying to close the editor without save.
I get
instead, I think we should consider removing the minimal size from the dialog and let it be as compact as possible, with the text centered on it.
Looking at UI recommendations and habits from various OS, such a dialog would seem more consistent with the current state of art.
Community
The text was updated successfully, but these errors were encountered: