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

meta: integrate wallpaper, FileBrowser, StateLayer

- A lot of this is implements patterns implemented by soramannew's
  caelestia-shell
This commit is contained in:
bbedward
2025-07-23 23:20:11 -04:00
parent a0735db7a4
commit ee2cbd708d
33 changed files with 1494 additions and 915 deletions

View File

@@ -6,10 +6,11 @@ import qs.Services
import qs.Widgets
Rectangle {
id: ramMonitor
id: root
property bool showPercentage: true
property bool showIcon: true
property var toggleProcessList
width: 55
height: 30
@@ -24,7 +25,8 @@ Rectangle {
cursorShape: Qt.PointingHandCursor
onClicked: {
ProcessMonitorService.setSortBy("memory");
processListPopout.toggle();
if (root.toggleProcessList)
root.toggleProcessList();
}
}
@@ -32,9 +34,8 @@ Rectangle {
anchors.centerIn: parent
spacing: 3
// RAM icon
DankIcon {
name: "developer_board" // Material Design CPU/processor icon (swapped from CPU widget)
name: "developer_board"
size: Theme.iconSize - 8
color: {
if (SystemMonitorService.memoryUsage > 90)
@@ -48,7 +49,6 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
// Percentage text
Text {
text: (SystemMonitorService.memoryUsage || 0).toFixed(0) + "%"
font.pixelSize: Theme.fontSizeSmall