Commit 6d468be8 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/notifications: add accessible names to toolbuttons

parent b69cbfce
......@@ -184,10 +184,15 @@ RowLayout {
id: configureButton
icon.name: "configure"
visible: false
display: PlasmaComponents3.AbstractButton.IconOnly
text: notificationHeading.configureActionLabel || i18nd("plasma_applet_org.kde.plasma.notifications", "Configure")
Accessible.description: applicationNameLabel.text
onClicked: notificationHeading.configureClicked()
PlasmaComponents3.ToolTip {
text: notificationHeading.configureActionLabel || i18nd("plasma_applet_org.kde.plasma.notifications", "Configure")
text: parent.text
}
}
......@@ -195,12 +200,17 @@ RowLayout {
id: dismissButton
icon.name: notificationHeading.dismissed ? "window-restore" : "window-minimize"
visible: false
display: PlasmaComponents3.AbstractButton.IconOnly
text: notificationHeading.dismissed
? i18ndc("plasma_applet_org.kde.plasma.notifications", "Opposite of minimize", "Restore")
: i18nd("plasma_applet_org.kde.plasma.notifications", "Minimize")
Accessible.description: applicationNameLabel.text
onClicked: notificationHeading.dismissClicked()
PlasmaComponents3.ToolTip {
text: notificationHeading.dismissed
? i18ndc("plasma_applet_org.kde.plasma.notifications", "Opposite of minimize", "Restore")
: i18nd("plasma_applet_org.kde.plasma.notifications", "Minimize")
text: parent.text
}
}
......@@ -208,6 +218,11 @@ RowLayout {
id: closeButton
visible: false
icon.name: "window-close"
display: PlasmaComponents3.AbstractButton.IconOnly
text: closeButtonToolTip.text
Accessible.description: applicationNameLabel.text
onClicked: notificationHeading.closeClicked()
PlasmaComponents3.ToolTip {
......
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