Commit ef5fd3b1 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/{showdesktop,minimizeall}: update tooltip to match the status

This improves the accessibility as the tooltip text is used in
accessible properties.
parent 4175f5df
Pipeline #210996 passed with stage
in 6 minutes and 12 seconds
......@@ -29,17 +29,17 @@ MouseArea {
Plasmoid.icon: Plasmoid.configuration.icon
Plasmoid.title: {
if (isMinimizeAll) {
return i18n("Minimize all Windows");
return minimizeAllComponent.item.active ? i18nc("@action:button", "Restore All Minimized Windows") : i18nc("@action", "Minimize All Windows");
}
return i18n("Peek at Desktop");
return showdesktop.showingDesktop ? i18nc("@action:button", "Stop Peeking at Desktop") : i18nc("@action:button", "Peek at Desktop");
}
Plasmoid.toolTipSubText: {
if (isMinimizeAll) {
return i18n("Show the desktop by minimizing all windows");
return minimizeAllComponent.item.active ? i18nc("@info:tooltip", "Restores the previously minimized windows") : i18n("Shows the Desktop by minimizing all windows");
}
return i18n("Temporarily reveals the Desktop by moving open windows into screen corners");
return showdesktop.showingDesktop ? i18nc("@info:tooltip", "Moves windows back to their original positions") : i18n("Temporarily reveals the Desktop by moving open windows into screen corners");
}
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
......
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