mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
update SystemMonitor tooltip
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user