Commit d8cb98e7 authored by David Edmundson's avatar David Edmundson

Accessibility in lock screen UI

Summary:
Add more explicit text to labels (available via "flat review" keys)
Add names to media controls

Test Plan: Ran lockscreen with orca running

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D7789
parent 0619c454
......@@ -47,5 +47,6 @@ Row {
id: batteryLabel
height: undefined
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel","%1%", battery.percent)
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel","Battery at %1%", battery.percent)
}
}
......@@ -137,6 +137,7 @@ Item {
iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward"
onClicked: mpris2Source.goPrevious()
visible: mpris2Source.canGoBack || mpris2Source.canGoNext
Accessible.name: i18n("Previous track")
}
PlasmaComponents.ToolButton {
......@@ -144,6 +145,7 @@ Item {
Layout.preferredWidth: height // make this button bigger
iconName: mpris2Source.playing ? "media-playback-pause" : "media-playback-start"
onClicked: mpris2Source.playPause()
Accessible.name: i18n("Play or Pause media")
}
PlasmaComponents.ToolButton {
......@@ -151,6 +153,7 @@ Item {
iconName: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward"
onClicked: mpris2Source.goNext()
visible: mpris2Source.canGoBack || mpris2Source.canGoNext
Accessible.name: i18n("Next track")
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment