1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

cc: add small disk usage variant

fixes #958
This commit is contained in:
bbedward
2025-12-09 16:09:13 -05:00
parent f953bd5488
commit 2b73077b50
2 changed files with 139 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ Column {
} else if (id === "battery") {
return widgetWidth <= 25 ? smallBatteryComponent : batteryPillComponent;
} else if (id === "diskUsage") {
return diskUsagePillComponent;
return widgetWidth <= 25 ? smallDiskUsageComponent : diskUsagePillComponent;
} else if (id === "colorPicker") {
return colorPickerPillComponent;
} else {
@@ -766,6 +766,25 @@ Column {
}
}
Component {
id: smallDiskUsageComponent
SmallDiskUsageButton {
property var widgetData: parent.widgetData || {}
property int widgetIndex: parent.widgetIndex || 0
width: parent.width
height: 48
mountPath: widgetData.mountPath || "/"
instanceId: widgetData.instanceId || ""
onClicked: {
if (!root.editMode) {
root.expandClicked(widgetData, widgetIndex);
}
}
}
}
Component {
id: colorPickerPillComponent
ColorPickerPill {