You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cancel/Confirm buttons position is not consistent across all dialogs #1165
@FirasH
I would give confirm | cancel | other option ()
Because that seems much more appropriate to me
But I have a question! Should I consider Apply as Confirm or OK as other option or vice versa ?
because in Edit/Preferences order is Restore | cancel | OK
and in Canvas/Properties order is OK | Apply | cancel
As far my understanding
OK | cancel | Apply = Confirm | cancel | other option()
OK | cancel | Restore = Confirm | cancel | other option()
In that order buttons of whole app would be in symmtery.
What do you think ?
@haideratGitHub I think the confirm button is OK, cancel button is Cancel and the other option is Apply/Restore or whatever is different from OK/Cancel.
If we take as reference the layout of GIMP:
The layout used is: other option | confirm | cancel
Using this rule, in the specific case of the dialog Edit > Preferences... of Synfig the order should be: Restore Defaults | OK | Cancel
Which means the last two buttons on the right should be swapped and of course the other dialogs should follow this rule as well.
Personally I think the layout used by GIMP (and by many others) is clear and intuitive.
@ice0 and @morevnaproject I just wanted to ask what order will you suggest finally so I can work on that issue ? Because there had been many ideas about ordering of buttons so can you please give me a final pointer and also where should I start looking to correct their ordering in code ?
IMHO It is interesting that an app have a look-and-feel natural for the host OS. Otherwise an user can think it's an alien app lol
But there might be a problem: we start to use glade files for UI... How could them could be handled to be adapted to the host OS?
In the meantime, @haideratGitHub, you can make a list of the dialogs with this "button-box" (with more than one "Ok" button) until the button ordering is defined.
Activity
ice0 commentedon Feb 20, 2020
Awesome idea! I like it!
morevnaproject commentedon Feb 20, 2020
Agree
haideratGitHub commentedon Feb 20, 2020
@ice0 Thanks for guiding me on synfig forum. As you have guided me enough so I would like to work on this issue and get it done as soon as possible :)
FirasH commentedon Feb 20, 2020
Which order would you give to the buttons?
For example: cancel | other option () | confirm?
ice0 commentedon Feb 20, 2020
I suggest to use Gnome Guidelines (https://developer.gnome.org/hig/stable/) and GIMP for reference.
haideratGitHub commentedon Feb 20, 2020
@FirasH
I would give confirm | cancel | other option ()
Because that seems much more appropriate to me
But I have a question! Should I consider Apply as Confirm or OK as other option or vice versa ?
because in Edit/Preferences order is Restore | cancel | OK
and in Canvas/Properties order is OK | Apply | cancel
As far my understanding
OK | cancel | Apply = Confirm | cancel | other option()
OK | cancel | Restore = Confirm | cancel | other option()
In that order buttons of whole app would be in symmtery.
What do you think ?
haideratGitHub commentedon Feb 20, 2020
@ice0 The reference you provided says the order should be Cancel | Confirm | Other option()
https://developer.gnome.org/hig/stable/dialogs.html.en
Order
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 I was thinking of order Confirm | Cancel | other option()
What do you suggest ?
FirasH commentedon Feb 20, 2020
@haideratGitHub I think the confirm button is OK, cancel button is Cancel and the other option is Apply/Restore or whatever is different from OK/Cancel.
If we take as reference the layout of GIMP:

The layout used is: other option | confirm | cancel
Using this rule, in the specific case of the dialog Edit > Preferences... of Synfig the order should be: Restore Defaults | OK | Cancel

Which means the last two buttons on the right should be swapped and of course the other dialogs should follow this rule as well.
Personally I think the layout used by GIMP (and by many others) is clear and intuitive.
FirasH commentedon Feb 20, 2020
In the case of the examples provided:
Let's see what the developers think about it.
haideratGitHub commentedon Feb 20, 2020
@FirasH Yeah That's good , Agreed. Should I start resolving this issue right now or wait for other's developer's opinion ?
FirasH commentedon Feb 20, 2020
I would wait for the opinion of @ice0 and @morevnaproject as they are two of the main developers.
haideratGitHub commentedon Feb 20, 2020
Okay! we'll see what they will say
9 remaining items
ice0 commentedon Feb 21, 2020
@morevnaproject This is because you are not Linux only user. But for Windows users, standard [Cancel] button location is on the right side.
haideratGitHub commentedon Feb 22, 2020
@ice0 and @morevnaproject I just wanted to ask what order will you suggest finally so I can work on that issue ? Because there had been many ideas about ordering of buttons so can you please give me a final pointer and also where should I start looking to correct their ordering in code ?
rodolforg commentedon Feb 22, 2020
IMHO It is interesting that an app have a look-and-feel natural for the host OS. Otherwise an user can think it's an alien app lol
But there might be a problem: we start to use glade files for UI... How could them could be handled to be adapted to the host OS?
In the meantime, @haideratGitHub, you can make a list of the dialogs with this "button-box" (with more than one "Ok" button) until the button ordering is defined.
haideratGitHub commentedon Feb 23, 2020
@rodolforg I had made list first day when I commented in this issue. Let me share that
I find these buttons.
FirasH commentedon Feb 23, 2020
There are other dialogs as well:
Plus all the dialogs for replace/recover/etc.
morevnaproject commentedon Feb 24, 2020
@ice0 @rodolforg Okay, I trust you here to make a final decision here. ^__^
That's a good question! Maybe there is a predefined container for widgets, that switch automatically?
ice0 commentedon Feb 27, 2020
Here's how GIMP handle this:
https://gitlab.gnome.org/GNOME/gimp/blob/master/app/dialogs/image-new-dialog.c#L111
And GTKDialog method:
https://developer.gnome.org/gtk3/stable/GtkDialog.html#gtk-dialog-set-alternative-button-order
I need a time to find solution, but i think we can fix this later.
UPD:
gtk-dialog-set-alternative-button-orderis deprecated.rodolforg commentedon Mar 3, 2020
I think they can be made first consistent (one single order pattern) and we later adapt them to OS?
Perhaps by making a call to a stub method that would fix button ordering according to host OS, we could easily change ordering later.
haideratGitHub commentedon Mar 3, 2020
What should I do now ??
rodolforg commentedon Mar 3, 2020
If your list is finished*, I'd make all dialogs use Cancel-extra buttons-OK order, as it seems most of them follow this ordering (#1165 (comment)).
git grep --ignore-case "ok"as well as for"cancel"as well as for their mnemonic versions (https://developer.gnome.org/gtk3/stable/GtkLabel.html#gtk-label-new-with-mnemonic)haideratGitHub commentedon Mar 3, 2020
@rodolforg Okay! I will check that. Meanwhile, may you please suggest/assign me with another issue from which I can start contributing to synfig ?
morevnaproject commentedon Mar 4, 2020
@haideratGitHub Please feel free to choose from any of those - good first issue (I mean unassigned ones ^__^)
ice0 commentedon Mar 5, 2020
@haideratGitHub you can also ask for assigned one, if the last comment in issue is older than one month :)
FirasH commentedon Aug 14, 2020
No recent activity here... I can take a look at this one.
First I'd place all the buttons in a coherent order then deal with the possibility of different layout for OSes.