Skip to content
Snippets Groups Projects
Commit 5523856f authored by jkito's avatar jkito :skull:
Browse files

gui: add accessibility hints to connection button

this added metadata is used by accessibility tools for
aiding the user to interact with the application
parent c77a966e
Branches
Tags
1 merge request!237gui: show bridge icon when transport is kcp and other misc UI fixes
......@@ -146,6 +146,8 @@ Item {
Layout.alignment: Qt.AlignBottom
padding: 0
display: AbstractButton.IconOnly
Accessible.name: qsTr("Turn on")
Accessible.role: Accessible.Button
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
......
......@@ -95,6 +95,7 @@ StateGroup {
target: toggleVPN
enabled: true
icon.source: Theme.buttonDisconnected
Accessible.name: qsTr("Turn on")
}
PropertyChanges {
target: systray
......@@ -130,6 +131,7 @@ StateGroup {
target: toggleVPN
enabled: true
icon.source: Theme.buttonConnected
Accessible.name: qsTr("Turn off")
}
PropertyChanges {
target: systray
......@@ -167,6 +169,7 @@ StateGroup {
target: toggleVPN
enabled: true
icon.source: Theme.buttonConnecting
Accessible.name: qsTr("Cancel")
}
PropertyChanges {
target: systray
......@@ -205,6 +208,7 @@ StateGroup {
PropertyChanges {
target: toggleVPN
icon.source: Theme.buttonConnecting
Accessible.name: qsTr("Cancel")
}
PropertyChanges {
target: systray
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment