mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
feat(control-center): add DiskUsage widget config overlay with showMountPath toggle and standardized tile sizing (#2507)
* feat(control-center): add widget config overlay with showMountPath toggle for DiskUsage Introduces WidgetConfigOverlay and DiskUsageWidgetConfigMenu components, allowing users to toggle mount path visibility per DiskUsage widget in edit mode * refactor(control-center): use Theme.iconSizeLarge and Theme.fontSizeLarge for small tiles Standardize SmallDiskUsageButton and SmallBatteryButton sizing with Theme.iconSizeLarge and Theme.fontSizeLarge, and unify font weight to Font.Bold on both tile widgets. * fix(control-center): adjust SmallDiskUsageButton font size based on showMountPath * refactor(control-center): simplify DiskUsage config menu i18n strings Remove the redundant "Disk Usage Widget" title and the toggle description to reduce translatable strings
This commit is contained in:
@@ -8,6 +8,7 @@ CompoundPill {
|
||||
|
||||
property string mountPath: "/"
|
||||
property string instanceId: ""
|
||||
property bool showMountPath: true
|
||||
|
||||
iconName: "storage"
|
||||
|
||||
@@ -37,6 +38,9 @@ CompoundPill {
|
||||
if (!selectedMount) {
|
||||
return I18n.tr("No disk data");
|
||||
}
|
||||
if (!showMountPath) {
|
||||
return I18n.tr("Disk Usage");
|
||||
}
|
||||
return selectedMount.mount;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user