Verified Commit 0aa9b7da 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 d84a8d72
......@@ -29,16 +29,24 @@ 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") : i18n("Minimize all Windows");
}
return i18n("Peek at Desktop");
return showdesktop.showingDesktop ? i18nc("@action:button", "Hide Desktop") : i18n("Peek at Desktop");
}
Plasmoid.toolTipSubText: {
if (isMinimizeAll) {
if (minimizeAllComponent.item.active) {
return i18nc("@info:tooltip", "Restore the previous minimized windows");
}
return i18n("Show the desktop by minimizing all windows");
}
if (showdesktop.showingDesktop) {
return i18nc("@info:tooltip", "Show open windows that are moved aside by Peek at Desktop");
}
return i18n("Temporarily reveals the Desktop by moving open windows into screen corners");
}
......
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