1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Add disk usage component for TopBar and ControlCenter

This commit is contained in:
bbedward
2025-09-24 18:06:46 -04:00
parent 9be7d44765
commit b893694977
14 changed files with 676 additions and 12 deletions

View File

@@ -171,7 +171,8 @@ Singleton {
"enabled": true,
"size": 20,
"selectedGpuIndex": 0,
"pciId": ""
"pciId": "",
"mountPath": "/"
}
leftWidgetsModel.append(dummyItem)
centerWidgetsModel.append(dummyItem)
@@ -741,6 +742,7 @@ Singleton {
var size = typeof order[i] === "string" ? undefined : order[i].size
var selectedGpuIndex = typeof order[i] === "string" ? undefined : order[i].selectedGpuIndex
var pciId = typeof order[i] === "string" ? undefined : order[i].pciId
var mountPath = typeof order[i] === "string" ? undefined : order[i].mountPath
var item = {
"widgetId": widgetId,
"enabled": enabled
@@ -751,6 +753,8 @@ Singleton {
item.selectedGpuIndex = selectedGpuIndex
if (pciId !== undefined)
item.pciId = pciId
if (mountPath !== undefined)
item.mountPath = mountPath
listModel.append(item)
}