Bar/Battery: improved tooltip and handle negative charging rate

- Also slightly tweaked StyledTooltip minimum size to avoid
inconsistencies (Tooltip with a single line looked like pills instead of
rounded rectangles)
This commit is contained in:
Sébastien Atoch 2025-08-03 22:51:01 -04:00
parent de94d94265
commit 7639900f38
3 changed files with 51 additions and 12 deletions

View file

@ -16,8 +16,8 @@ Window {
color: "transparent"
visible: false
minimumWidth: tooltipText.implicitWidth + 24
minimumHeight: tooltipText.implicitHeight + 16
minimumWidth: Math.max(50, tooltipText.implicitWidth + 24)
minimumHeight: Math.max(50, tooltipText.implicitHeight + 16)
property var _timerObj: null
onTooltipVisibleChanged: {