I highly doubt it is possible to change the button order in Windows, but GTK can! To change the order of the Cancel/No/Yes buttons, set the gtk-alternative-button-order
property by adding this to your ~/.config/gtk-3.0/settings.ini
file:
[Settings]
gtk-alternative-button-order = 1
For some background, the GNOME Human Interface Guidelines specify that the cancel button should be on the left:
When a dialog includes an affirmative and a cancel button, always ensure that the cancel button appears first, before the affirmative button. In left-to-right locales, this is on the left.
This button order ensures that users become aware of, and are reminded of, the ability to cancel prior to encountering the affirmative button.
But it's Linux; so it's configurable! From the gtk_dialog_set_alternative_button_order() documentation:
Sets an alternative button order. If the “gtk-alternative-button-order” setting is set to
TRUE
, the dialog buttons are reordered according to the order of the response ids passed to this function.By default, GTK+ dialogs use the button order advocated by the GNOME Human Interface Guidelines with the affirmative button at the far right, and the cancel button left of it. But the builtin GTK+ dialogs and GtkMessageDialogs do provide an alternative button order, which is more suitable on some platforms, e.g. Windows.
The Windows user experience guidelines have the opposite recommendation. They state:
Present the commit buttons in the following order:
- OK/[Do it]/Yes
- [Don't do it]/No
- Cancel
- Apply (if present)
- Help (if present)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句