From d98ad554670ccc8e3f2bc932a818e5121ac7ff25 Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Sun, 24 Dec 2017 21:21:46 -0500 Subject: [PATCH] Change OK button style to BS_DEFPUSHBUTTON in auth-user-pass dialog - 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 --- res/openvpn-gui-res-cs.rc | 2 +- res/openvpn-gui-res-de.rc | 2 +- res/openvpn-gui-res-dk.rc | 2 +- res/openvpn-gui-res-en.rc | 2 +- res/openvpn-gui-res-es.rc | 2 +- res/openvpn-gui-res-fi.rc | 2 +- res/openvpn-gui-res-fr.rc | 2 +- res/openvpn-gui-res-it.rc | 2 +- res/openvpn-gui-res-jp.rc | 2 +- res/openvpn-gui-res-kr.rc | 2 +- res/openvpn-gui-res-nl.rc | 2 +- res/openvpn-gui-res-no.rc | 2 +- res/openvpn-gui-res-pl.rc | 2 +- res/openvpn-gui-res-pt.rc | 2 +- res/openvpn-gui-res-ru.rc | 2 +- res/openvpn-gui-res-se.rc | 2 +- res/openvpn-gui-res-tr.rc | 2 +- res/openvpn-gui-res-ua.rc | 2 +- res/openvpn-gui-res-zh-hant.rc | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/res/openvpn-gui-res-cs.rc b/res/openvpn-gui-res-cs.rc index acfd432..4164bfc 100644 --- a/res/openvpn-gui-res-cs.rc +++ b/res/openvpn-gui-res-cs.rc @@ -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 diff --git a/res/openvpn-gui-res-de.rc b/res/openvpn-gui-res-de.rc index 80960cc..686fcdd 100644 --- a/res/openvpn-gui-res-de.rc +++ b/res/openvpn-gui-res-de.rc @@ -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 diff --git a/res/openvpn-gui-res-dk.rc b/res/openvpn-gui-res-dk.rc index faf5f73..a14ca72 100644 --- a/res/openvpn-gui-res-dk.rc +++ b/res/openvpn-gui-res-dk.rc @@ -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 diff --git a/res/openvpn-gui-res-en.rc b/res/openvpn-gui-res-en.rc index 07a09be..d23abea 100644 --- a/res/openvpn-gui-res-en.rc +++ b/res/openvpn-gui-res-en.rc @@ -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 diff --git a/res/openvpn-gui-res-es.rc b/res/openvpn-gui-res-es.rc index da48737..1536f66 100644 --- a/res/openvpn-gui-res-es.rc +++ b/res/openvpn-gui-res-es.rc @@ -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 diff --git a/res/openvpn-gui-res-fi.rc b/res/openvpn-gui-res-fi.rc index 7c8c973..85d8c32 100644 --- a/res/openvpn-gui-res-fi.rc +++ b/res/openvpn-gui-res-fi.rc @@ -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 diff --git a/res/openvpn-gui-res-fr.rc b/res/openvpn-gui-res-fr.rc index b68ad9d..28b9b38 100644 --- a/res/openvpn-gui-res-fr.rc +++ b/res/openvpn-gui-res-fr.rc @@ -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 diff --git a/res/openvpn-gui-res-it.rc b/res/openvpn-gui-res-it.rc index 0dd22e4..d1b0f22 100644 --- a/res/openvpn-gui-res-it.rc +++ b/res/openvpn-gui-res-it.rc @@ -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 diff --git a/res/openvpn-gui-res-jp.rc b/res/openvpn-gui-res-jp.rc index aaca22a..3036ab2 100644 --- a/res/openvpn-gui-res-jp.rc +++ b/res/openvpn-gui-res-jp.rc @@ -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 diff --git a/res/openvpn-gui-res-kr.rc b/res/openvpn-gui-res-kr.rc index d9d1a56..3e98536 100644 --- a/res/openvpn-gui-res-kr.rc +++ b/res/openvpn-gui-res-kr.rc @@ -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 diff --git a/res/openvpn-gui-res-nl.rc b/res/openvpn-gui-res-nl.rc index e30d189..0104e75 100644 --- a/res/openvpn-gui-res-nl.rc +++ b/res/openvpn-gui-res-nl.rc @@ -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 diff --git a/res/openvpn-gui-res-no.rc b/res/openvpn-gui-res-no.rc index 6c8fde1..449656b 100644 --- a/res/openvpn-gui-res-no.rc +++ b/res/openvpn-gui-res-no.rc @@ -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 diff --git a/res/openvpn-gui-res-pl.rc b/res/openvpn-gui-res-pl.rc index 340d4a2..7198144 100644 --- a/res/openvpn-gui-res-pl.rc +++ b/res/openvpn-gui-res-pl.rc @@ -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 diff --git a/res/openvpn-gui-res-pt.rc b/res/openvpn-gui-res-pt.rc index 0259359..b60b8ff 100644 --- a/res/openvpn-gui-res-pt.rc +++ b/res/openvpn-gui-res-pt.rc @@ -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 diff --git a/res/openvpn-gui-res-ru.rc b/res/openvpn-gui-res-ru.rc index f9ed50e..e612e39 100644 --- a/res/openvpn-gui-res-ru.rc +++ b/res/openvpn-gui-res-ru.rc @@ -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 diff --git a/res/openvpn-gui-res-se.rc b/res/openvpn-gui-res-se.rc index 834fdb3..64a0d53 100644 --- a/res/openvpn-gui-res-se.rc +++ b/res/openvpn-gui-res-se.rc @@ -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 diff --git a/res/openvpn-gui-res-tr.rc b/res/openvpn-gui-res-tr.rc index ca48e0f..3831037 100644 --- a/res/openvpn-gui-res-tr.rc +++ b/res/openvpn-gui-res-tr.rc @@ -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 diff --git a/res/openvpn-gui-res-ua.rc b/res/openvpn-gui-res-ua.rc index 11b3b62..da8037c 100644 --- a/res/openvpn-gui-res-ua.rc +++ b/res/openvpn-gui-res-ua.rc @@ -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 diff --git a/res/openvpn-gui-res-zh-hant.rc b/res/openvpn-gui-res-zh-hant.rc index d739492..de12463 100644 --- a/res/openvpn-gui-res-zh-hant.rc +++ b/res/openvpn-gui-res-zh-hant.rc @@ -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