wbar: (partial) right click menu for start button

This commit is contained in:
end-4
2025-11-15 08:27:31 +01:00
parent 4e86ec9fe9
commit d0de047db0
9 changed files with 148 additions and 8 deletions
@@ -90,6 +90,6 @@ BarButton {
}
BarToolTip {
extraVisibleCondition: root.shouldShowTooltip && batteryHoverArea.containsMouse
text: Translation.tr("Battery: %1").arg(`${Math.round(Battery.percentage * 100) || 0}%`)
text: Translation.tr("Battery: %1%2").arg(`${Math.round(Battery.percentage * 100) || 0}%`).arg(Battery.isPluggedIn ? (" " + Translation.tr("(Plugged in)")) : "")
}
}