update SystemMonitor tooltip

This commit is contained in:
notiant
2026-02-02 10:38:39 +01:00
committed by GitHub
parent a8d74633f6
commit 72df50fd5d
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -111,10 +111,8 @@ Item {
const usedGb = SystemStatService.diskUsedGb[diskPath] || 0;
const sizeGb = SystemStatService.diskSizeGb[diskPath] || 0;
const availGb = SystemStatService.diskAvailGb[diskPath] || 0;
rows.push([I18n.tr("system-monitor.disk"), `${usedGb.toFixed(1)}GB/${sizeGb.toFixed(1)}GB (${diskPercent}%)`]);
// TODO i18n
rows.push(["Available", `${availGb.toFixed(1)}G`]);
rows.push([I18n.tr("system-monitor.disk"), `${usedGb.toFixed(1)} / ${sizeGb.toFixed(1)} GB (${diskPercent}%)`]);
rows.push([I18n.tr("common.available"), `${availGb.toFixed(1)} GB`]);
}
return rows;
+1 -1
View File
@@ -17,7 +17,7 @@ PopupWindow {
property int gridPaddingVertical: Style.marginXS // extra vertical padding for grid mode
property int delay: 0
property int hideDelay: 0
property int maxWidth: 320
property int maxWidth: 340
property int animationDuration: Style.animationFast
property real animationScale: 0.85