BarSysMon: added tooltip to show mountpoint

This commit is contained in:
ItsLemmy
2025-11-17 14:55:39 -05:00
parent f1d714ad9a
commit 5e398d387e
+12
View File
@@ -502,6 +502,7 @@ Rectangle {
}
NText {
id: toto
text: SystemStatService.diskPercents[diskPath] ? `${SystemStatService.diskPercents[diskPath]}%` : "n/a"
family: Settings.data.ui.fontFixed
pointSize: textSize
@@ -517,6 +518,17 @@ Rectangle {
Layout.column: isVertical ? 0 : 1
scale: isVertical ? Math.min(1.0, root.width / implicitWidth) : 1.0
}
MouseArea {
anchors.fill: parent
hoverEnabled: true
onEntered: {
TooltipService.show(screen, diskContent, diskPath, BarService.getTooltipDirection());
}
onExited: {
TooltipService.hide();
}
}
}
}
}