diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-05 17:18:33 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-05 17:18:33 +0800 |
| commit | f6b5ac3cfba03602fea9d8c30b13075514dbd131 (patch) | |
| tree | 0d869c2ad05ca396f7f2b9a34ce1b3e8993dfcb2 /components | |
| parent | c02ed5122986c99e1b25693b7134240dcc0ea0e1 (diff) | |
cleanup: remove unused stuff
Diffstat (limited to 'components')
| -rw-r--r-- | components/Icon.qml | 9 | ||||
| -rw-r--r-- | components/Resource.qml | 59 |
2 files changed, 0 insertions, 68 deletions
diff --git a/components/Icon.qml b/components/Icon.qml index e72f737..a23f6da 100644 --- a/components/Icon.qml +++ b/components/Icon.qml @@ -24,13 +24,4 @@ IText { } } verticalAlignment: Text.AlignVCenter - // color: Style.m3colors.m3onBackground - - // Behavior on fill { - // NumberAnimation { - // duration: Appearance?.animation.elementMoveFast.duration ?? 200 - // easing.type: Appearance?.animation.elementMoveFast.type ?? Easing.BezierSpline - // easing.bezierCurve: Appearance?.animation.elementMoveFast.bezierCurve ?? [0.34, 0.80, 0.34, 1.00, 1, 1] - // } - // } } diff --git a/components/Resource.qml b/components/Resource.qml deleted file mode 100644 index 2048e98..0000000 --- a/components/Resource.qml +++ /dev/null @@ -1,59 +0,0 @@ -import QtQuick -import QtQuick.Layouts -import Quickshell -import Quickshell.Io - -import qs.config - -Item { - id: root - - required property string iconName - required property double percentage - property bool shown: true - clip: true - visible: width > 0 && height > 0 - implicitWidth: resourceRowLayout.x < 0 ? 0 : childrenRect.width - implicitHeight: childrenRect.height - - RowLayout { - id: resourceRowLayout - spacing: 4 - x: root.shown ? 0 : -resourceRowLayout.width - - CircularProgress { - Layout.alignment: Qt.AlignVCenter - lineWidth: 2 - value: root.percentage - size: 26 - // secondaryColor: Appearance.colors.colSecondaryContainer - // primaryColor: Appearance.m3colors.m3onSecondaryContainer - - MaterialSymbol { - anchors.centerIn: parent - fill: 1 - text: iconName - // iconSize: Appearance.font.pixelSize.normal - // color: Appearance.m3colors.m3onSecondaryContainer - } - } - - Text { - Layout.alignment: Qt.AlignVCenter - // color: Appearance.colors.colOnLayer1 - text: `${Math.round(percentage * 100)}` - } - - Behavior on x { - animation: Appearance.animation.elementMove.numberAnimation.createObject(this) - } - } - - Behavior on implicitWidth { - NumberAnimation { - duration: Appearance.animation.elementMove.duration - easing.type: Appearance.animation.elementMove.type - easing.bezierCurve: Appearance.animation.elementMove.bezierCurve - } - } -} |
