diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-03-16 10:07:32 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-03-16 10:07:32 -0400 |
| commit | fc60c4aacf4189188bf566219d38cb2dab4704d8 (patch) | |
| tree | 3098f974ed4cfd7090c47db6de053d59e976f65d /modules/dashboard/dash/Resources.qml | |
| parent | fix build (diff) | |
| download | caelestia-shell-fc60c4aacf4189188bf566219d38cb2dab4704d8.tar.gz caelestia-shell-fc60c4aacf4189188bf566219d38cb2dab4704d8.tar.bz2 caelestia-shell-fc60c4aacf4189188bf566219d38cb2dab4704d8.zip | |
simplify dashboard
Diffstat (limited to 'modules/dashboard/dash/Resources.qml')
| -rw-r--r-- | modules/dashboard/dash/Resources.qml | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/modules/dashboard/dash/Resources.qml b/modules/dashboard/dash/Resources.qml deleted file mode 100644 index 7f44a9d..0000000 --- a/modules/dashboard/dash/Resources.qml +++ /dev/null @@ -1,87 +0,0 @@ -import qs.components -import qs.components.misc -import qs.services -import qs.config -import QtQuick - -Row { - id: root - - anchors.top: parent.top - anchors.bottom: parent.bottom - - padding: Appearance.padding.large - spacing: Appearance.spacing.normal - - Ref { - service: SystemUsage - } - - Resource { - icon: "memory" - value: SystemUsage.cpuPerc - colour: Colours.palette.m3primary - } - - Resource { - icon: "memory_alt" - value: SystemUsage.memPerc - colour: Colours.palette.m3secondary - } - - Resource { - icon: "hard_disk" - value: SystemUsage.storagePerc - colour: Colours.palette.m3tertiary - } - - component Resource: Item { - id: res - - required property string icon - required property real value - required property color colour - - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.margins: Appearance.padding.large - implicitWidth: icon.implicitWidth - - StyledRect { - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.bottom: icon.top - anchors.bottomMargin: Appearance.spacing.small - - implicitWidth: Config.dashboard.sizes.resourceProgessThickness - - color: Colours.layer(Colours.palette.m3surfaceContainerHigh, 2) - radius: Appearance.rounding.full - - StyledRect { - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - implicitHeight: res.value * parent.height - - color: res.colour - radius: Appearance.rounding.full - } - } - - MaterialIcon { - id: icon - - anchors.bottom: parent.bottom - - text: res.icon - color: res.colour - } - - Behavior on value { - Anim { - duration: Appearance.anim.durations.large - } - } - } -} |