From 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 Mon Sep 17 00:00:00 2001 From: AlexanderCurl Date: Sat, 18 Apr 2026 17:46:06 +0100 Subject: Replaced file structures for themes in the correct format --- .../ControlCenter/Details/DiskUsageDetail.qml | 177 --------------------- 1 file changed, 177 deletions(-) delete mode 100644 raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modules/ControlCenter/Details/DiskUsageDetail.qml (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modules/ControlCenter/Details/DiskUsageDetail.qml') diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modules/ControlCenter/Details/DiskUsageDetail.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modules/ControlCenter/Details/DiskUsageDetail.qml deleted file mode 100644 index 90fbf9d..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modules/ControlCenter/Details/DiskUsageDetail.qml +++ /dev/null @@ -1,177 +0,0 @@ -import QtQuick -import qs.Common -import qs.Services -import qs.Widgets - -Rectangle { - id: root - - LayoutMirroring.enabled: I18n.isRtl - LayoutMirroring.childrenInherit: true - - property string currentMountPath: "/" - property string instanceId: "" - - signal mountPathChanged(string newMountPath) - - implicitHeight: diskContent.height + Theme.spacingM - radius: Theme.cornerRadius - color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency) - border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.08) - border.width: 0 - - Component.onCompleted: { - DgopService.addRef(["diskmounts"]); - } - - Component.onDestruction: { - DgopService.removeRef(["diskmounts"]); - } - - DankFlickable { - id: diskContent - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - anchors.margins: Theme.spacingM - anchors.topMargin: Theme.spacingM - contentHeight: diskColumn.height - clip: true - - Column { - id: diskColumn - width: parent.width - spacing: Theme.spacingS - - Item { - width: parent.width - height: 100 - visible: !DgopService.dgopAvailable || !DgopService.diskMounts || DgopService.diskMounts.length === 0 - - Column { - anchors.centerIn: parent - spacing: Theme.spacingM - - DankIcon { - anchors.horizontalCenter: parent.horizontalCenter - name: DgopService.dgopAvailable ? "storage" : "error" - size: 32 - color: DgopService.dgopAvailable ? Theme.primary : Theme.error - } - - StyledText { - anchors.horizontalCenter: parent.horizontalCenter - text: DgopService.dgopAvailable ? I18n.tr("No disk data available") : I18n.tr("dgop not available") - font.pixelSize: Theme.fontSizeMedium - color: Theme.surfaceText - horizontalAlignment: Text.AlignHCenter - } - } - } - - Repeater { - model: DgopService.diskMounts || [] - delegate: Rectangle { - required property var modelData - required property int index - - width: parent.width - height: 80 - radius: Theme.cornerRadius - color: Theme.surfaceLight - border.color: modelData.mount === currentMountPath ? Theme.primary : Theme.outlineLight - border.width: modelData.mount === currentMountPath ? 2 : 1 - - Row { - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: Theme.spacingM - spacing: Theme.spacingM - - Column { - anchors.verticalCenter: parent.verticalCenter - spacing: 2 - - DankIcon { - name: "storage" - size: Theme.iconSize - color: { - const percentStr = modelData.percent?.replace("%", "") || "0"; - const percent = parseFloat(percentStr) || 0; - if (percent > 90) - return Theme.error; - if (percent > 75) - return Theme.warning; - return modelData.mount === currentMountPath ? Theme.primary : Theme.surfaceText; - } - anchors.horizontalCenter: parent.horizontalCenter - } - - StyledText { - text: { - const percentStr = modelData.percent?.replace("%", "") || "0"; - const percent = parseFloat(percentStr) || 0; - return percent.toFixed(0) + "%"; - } - font.pixelSize: Theme.fontSizeSmall - color: Theme.surfaceText - anchors.horizontalCenter: parent.horizontalCenter - } - } - - Column { - anchors.verticalCenter: parent.verticalCenter - width: parent.parent.width - parent.parent.anchors.leftMargin - parent.spacing - 50 - Theme.spacingM - - StyledText { - text: modelData.mount === "/" ? I18n.tr("Root Filesystem") : modelData.mount - font.pixelSize: Theme.fontSizeMedium - color: Theme.surfaceText - font.weight: modelData.mount === currentMountPath ? Font.Medium : Font.Normal - elide: Text.ElideRight - width: parent.width - horizontalAlignment: Text.AlignLeft - } - - StyledText { - text: modelData.mount - font.pixelSize: Theme.fontSizeSmall - color: Theme.surfaceVariantText - elide: Text.ElideRight - width: parent.width - visible: modelData.mount !== "/" - horizontalAlignment: Text.AlignLeft - } - - StyledText { - text: `${modelData.used || "?"} / ${modelData.size || "?"}` - font.pixelSize: Theme.fontSizeSmall - color: Theme.surfaceVariantText - elide: Text.ElideRight - width: parent.width - horizontalAlignment: Text.AlignLeft - } - } - } - - DankRipple { - id: mountRipple - cornerRadius: parent.radius - } - - MouseArea { - anchors.fill: parent - hoverEnabled: true - cursorShape: Qt.PointingHandCursor - onPressed: mouse => mountRipple.trigger(mouse.x, mouse.y) - onClicked: { - currentMountPath = modelData.mount; - mountPathChanged(modelData.mount); - } - } - } - } - } - } -} -- cgit v1.3