1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

Add system resource dropdown

This commit is contained in:
bbedward
2025-07-13 15:36:41 -04:00
parent a9b5e0b09d
commit a1b6c9e791
13 changed files with 965 additions and 15 deletions

View File

@@ -2,12 +2,14 @@ import QtQuick
import QtQuick.Controls
import "../Common"
import "../Services"
import "."
Rectangle {
id: ramWidget
property bool showPercentage: true
property bool showIcon: true
property var processDropdown: null
width: 55
height: 30
@@ -24,9 +26,13 @@ Rectangle {
id: ramArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
// RAM widget clicked
if (processDropdown) {
ProcessMonitorService.setSortBy("memory")
processDropdown.toggle()
}
}
}
@@ -57,5 +63,4 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
}
}