summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
committerNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
commita2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch)
tree1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml
parent34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff)
downloadRaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz
RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml178
1 files changed, 0 insertions, 178 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml
deleted file mode 100644
index cb7089b..0000000
--- a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/DankDash/Overview/SystemMonitorCard.qml
+++ /dev/null
@@ -1,178 +0,0 @@
-import QtQuick
-import QtQuick.Effects
-import qs.Common
-import qs.Services
-import qs.Widgets
-
-Card {
- id: root
-
- Component.onCompleted: {
- DgopService.addRef(["cpu", "memory", "system"])
- }
- Component.onDestruction: {
- DgopService.removeRef(["cpu", "memory", "system"])
- }
-
- Row {
- anchors.fill: parent
- anchors.margins: Theme.spacingS
- spacing: Theme.spacingM
-
- // CPU Bar
- Column {
- width: (parent.width - 2 * Theme.spacingM) / 3
- height: parent.height
- spacing: Theme.spacingS
-
- Rectangle {
- width: 8
- height: parent.height - Theme.iconSizeSmall - Theme.spacingS
- radius: 4
- anchors.horizontalCenter: parent.horizontalCenter
- color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
-
- Rectangle {
- width: parent.width
- height: parent.height * Math.min((DgopService.cpuUsage || 6) / 100, 1)
- radius: parent.radius
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- color: {
- if (DgopService.cpuUsage > 80) return Theme.error
- if (DgopService.cpuUsage > 60) return Theme.warning
- return Theme.primary
- }
-
- Behavior on height {
- NumberAnimation {
- duration: Theme.shortDuration
- easing.type: Theme.standardEasing
- }
- }
- }
- }
-
- Item {
- width: parent.width
- height: Theme.iconSizeSmall
-
- DankIcon {
- name: "memory"
- size: Theme.iconSizeSmall
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- color: {
- if (DgopService.cpuUsage > 80) return Theme.error
- if (DgopService.cpuUsage > 60) return Theme.warning
- return Theme.primary
- }
- }
- }
- }
-
- // Temperature Bar
- Column {
- width: (parent.width - 2 * Theme.spacingM) / 3
- height: parent.height
- spacing: Theme.spacingS
-
- Rectangle {
- width: 8
- height: parent.height - Theme.iconSizeSmall - Theme.spacingS
- radius: 4
- anchors.horizontalCenter: parent.horizontalCenter
- color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
-
- Rectangle {
- width: parent.width
- height: parent.height * Math.min(Math.max((DgopService.cpuTemperature || 40) / 100, 0), 1)
- radius: parent.radius
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- color: {
- if (DgopService.cpuTemperature > 85) return Theme.error
- if (DgopService.cpuTemperature > 69) return Theme.warning
- return Theme.primary
- }
-
- Behavior on height {
- NumberAnimation {
- duration: Theme.shortDuration
- easing.type: Theme.standardEasing
- }
- }
- }
- }
-
- Item {
- width: parent.width
- height: Theme.iconSizeSmall
-
- DankIcon {
- name: "device_thermostat"
- size: Theme.iconSizeSmall
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- color: {
- if (DgopService.cpuTemperature > 85) return Theme.error
- if (DgopService.cpuTemperature > 69) return Theme.warning
- return Theme.primary
- }
- }
- }
- }
-
- // RAM Bar
- Column {
- width: (parent.width - 2 * Theme.spacingM) / 3
- height: parent.height
- spacing: Theme.spacingS
-
- Rectangle {
- width: 8
- height: parent.height - Theme.iconSizeSmall - Theme.spacingS
- radius: 4
- anchors.horizontalCenter: parent.horizontalCenter
- color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
-
- Rectangle {
- width: parent.width
- height: parent.height * Math.min((DgopService.memoryUsage || 42) / 100, 1)
- radius: parent.radius
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- color: {
- if (DgopService.memoryUsage > 90) return Theme.error
- if (DgopService.memoryUsage > 75) return Theme.warning
- return Theme.primary
- }
-
- Behavior on height {
- NumberAnimation {
- duration: Theme.shortDuration
- easing.type: Theme.standardEasing
- }
- }
- }
- }
-
- Item {
- width: parent.width
- height: Theme.iconSizeSmall
-
- DankIcon {
- name: "developer_board"
- size: Theme.iconSizeSmall
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- color: {
- if (DgopService.memoryUsage > 90) return Theme.error
- if (DgopService.memoryUsage > 75) return Theme.warning
- return Theme.primary
- }
- }
- }
- }
- }
-}