Verified Commit a989b5a7 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applet: add text to mute button

This improves the accessibility.
parent 751b3145
......@@ -193,6 +193,10 @@ PC3.ItemDelegate {
onClicked: item.model.Muted = !item.model.Muted
checked: item.model.Muted
text: item.model.Muted ? i18nc("@action:button", "Unmute") : i18nc("@action:button", "Mute")
Accessible.description: item.model.Muted ? i18n("Unmute %1", defaultButton.text) : i18n("Mute %1", defaultButton.text)
PC3.ToolTip.visible: hovered
PC3.ToolTip.text: item.model.Muted ? i18n("Unmute %1", defaultButton.text) : i18n("Mute %1", defaultButton.text)
PC3.ToolTip.delay: 700
......
......@@ -15,4 +15,6 @@ PlasmaComponents3.ToolButton {
readonly property int size: Math.ceil(PlasmaCore.Units.iconSizes.small + PlasmaCore.Units.smallSpacing * 2)
implicitWidth: size
implicitHeight: size
display: PlasmaComponents3.AbstractButton.IconOnly
}
Supports Markdown
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