Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat(UI): add some accessibility labels to login pages
Browse files Browse the repository at this point in the history
Fix #2101.
  • Loading branch information
zetok committed Nov 14, 2016
1 parent 5d64450 commit 953fe24
Showing 1 changed file with 54 additions and 5 deletions.
59 changes: 54 additions & 5 deletions src/loginscreen.ui
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<bool>true</bool>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="newPage">
<layout class="QHBoxLayout" name="horizontalLayout_5">
Expand Down Expand Up @@ -114,6 +114,9 @@
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="newUsername">
<property name="accessibleDescription">
<string>Username input field</string>
</property>
<property name="maxLength">
<number>64</number>
</property>
Expand All @@ -130,7 +133,11 @@
</widget>
</item>
<item row="2" column="1">
<widget class="PasswordEdit" name="newPass"/>
<widget class="PasswordEdit" name="newPass">
<property name="accessibleDescription">
<string>Password input field, you can leave it empty (no password), or type at least 6 characters</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_8">
Expand All @@ -143,7 +150,11 @@
</widget>
</item>
<item row="3" column="1">
<widget class="PasswordEdit" name="newPassConfirm"/>
<widget class="PasswordEdit" name="newPassConfirm">
<property name="accessibleDescription">
<string>Password confirmation field</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2">
<widget class="QProgressBar" name="passStrengthMeter">
Expand Down Expand Up @@ -172,6 +183,9 @@
</item>
<item>
<widget class="QPushButton" name="createAccountButton">
<property name="accessibleDescription">
<string>Create a new profile button</string>
</property>
<property name="text">
<string>Create Profile</string>
</property>
Expand Down Expand Up @@ -281,7 +295,14 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="loginUsernames"/>
<widget class="QComboBox" name="loginUsernames">
<property name="accessibleName">
<string>Profile list</string>
</property>
<property name="accessibleDescription">
<string>List of profiles</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="loginPasswordLabel">
Expand All @@ -294,13 +315,20 @@
</widget>
</item>
<item>
<widget class="PasswordEdit" name="loginPassword"/>
<widget class="PasswordEdit" name="loginPassword">
<property name="accessibleDescription">
<string>Password input</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="autoLoginCB">
<property name="toolTip">
<string>If the profile does not have a password, qTox can skip the login screen</string>
</property>
<property name="accessibleDescription">
<string>Load automatically checkbox</string>
</property>
<property name="text">
<string>Load automatically</string>
</property>
Expand All @@ -323,6 +351,9 @@
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="importButton">
<property name="accessibleDescription">
<string>Import profile</string>
</property>
<property name="text">
<string>Import</string>
</property>
Expand All @@ -343,6 +374,12 @@
</item>
<item>
<widget class="QPushButton" name="loginButton">
<property name="accessibleName">
<string/>
</property>
<property name="accessibleDescription">
<string>Load selected profile button</string>
</property>
<property name="text">
<string>Load</string>
</property>
Expand Down Expand Up @@ -382,6 +419,12 @@
<height>22</height>
</rect>
</property>
<property name="accessibleName">
<string/>
</property>
<property name="accessibleDescription">
<string>New profile creation page</string>
</property>
<property name="text">
<string>New Profile</string>
</property>
Expand All @@ -395,6 +438,12 @@
<height>22</height>
</rect>
</property>
<property name="accessibleName">
<string>Load Profile</string>
</property>
<property name="accessibleDescription">
<string>Loading existing profile page</string>
</property>
<property name="text">
<string>Load Profile</string>
</property>
Expand Down

0 comments on commit 953fe24

Please sign in to comment.