Skip to content

Commit

Permalink
Change OK button style to BS_DEFPUSHBUTTON in auth-user-pass dialog
Browse files Browse the repository at this point in the history
- Make the OK button appear highlighted as the default action so that
  the user can press enter and submit the form. This also gives a clearer
  indication of the default action when automatic submission of saved
  username/password activates.

Signed-off-by: Selva Nair <[email protected]>
  • Loading branch information
selvanair committed Dec 26, 2017
1 parent cf2d1a8 commit d98ad55
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-cs.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Uložit heslo", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Zrušit", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-de.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Passwort speichern", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "Ok", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Ok", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Abbrechen", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-dk.rc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Annuller", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-en.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Cancel", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-es.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Cancelar", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-fi.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Tallenna salasana", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Peruuta", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-fr.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Se souvenir du mot de passe", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Annuler", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-it.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Annulla", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-jp.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "キャンセル", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-kr.rc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 35, 6, 115, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 35, 23, 115, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "암호 저장", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "확인", IDOK, 25, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "확인", IDOK, 25, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "취소", IDCANCEL, 85, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-nl.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Wachtwoord opslaan", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Annuleren", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-no.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Husk passord", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Avbryt", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-pl.rc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Anuluj", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-pt.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Cancelar", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-ru.rc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 80, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 80, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Запомнить", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 30, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 30, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Отмена", IDCANCEL, 100, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 180, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-se.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Avbryt", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-tr.rc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 50, 6, 104, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 50, 23, 104, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Save password", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "Tamam", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Tamam", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Çıkış", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-ua.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 80, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 80, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "Запам'ятати", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "OK", IDOK, 30, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "OK", IDOK, 30, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "Скасувати", IDCANCEL, 100, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 180, 10
END
Expand Down
2 changes: 1 addition & 1 deletion res/openvpn-gui-res-zh-hant.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ BEGIN
EDITTEXT ID_EDT_AUTH_USER, 60, 6, 94, 12, ES_AUTOHSCROLL
EDITTEXT ID_EDT_AUTH_PASS, 60, 23, 94, 12, ES_PASSWORD | ES_AUTOHSCROLL
CHECKBOX "儲存密碼", ID_CHK_SAVE_PASS, 6, 42, 100, 10
PUSHBUTTON "確認", IDOK, 20, 58, 50, 14, BS_PUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "確認", IDOK, 20, 58, 50, 14, BS_DEFPUSHBUTTON | WS_TABSTOP | WS_DISABLED
PUSHBUTTON "取消", IDCANCEL, 90, 58, 52, 14
LTEXT "", ID_TXT_WARNING, 6, 74, 150, 10
END
Expand Down

0 comments on commit d98ad55

Please sign in to comment.