mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
meta: large-scale refactor progress
This commit is contained in:
@@ -9,7 +9,6 @@ Rectangle {
|
||||
|
||||
property bool showPercentage: true
|
||||
property bool showIcon: true
|
||||
property var processDropdown: null
|
||||
|
||||
width: 55
|
||||
height: 30
|
||||
@@ -18,10 +17,6 @@ Rectangle {
|
||||
Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.16) :
|
||||
Qt.rgba(Theme.secondary.r, Theme.secondary.g, Theme.secondary.b, 0.08)
|
||||
|
||||
Component.onCompleted: {
|
||||
// CPU widget initialized
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: cpuArea
|
||||
anchors.fill: parent
|
||||
@@ -29,10 +24,8 @@ Rectangle {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
|
||||
onClicked: {
|
||||
if (processDropdown) {
|
||||
ProcessMonitorService.setSortBy("cpu")
|
||||
processDropdown.toggle()
|
||||
}
|
||||
ProcessMonitorService.setSortBy("cpu")
|
||||
processListDropdown.toggle()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user