From 3100833fb1a0aa2cf4ae4ec22eeec93c04106fca Mon Sep 17 00:00:00 2001 From: Damocles Date: Wed, 15 Apr 2026 21:11:32 +0200 Subject: [PATCH] feat: add process list column headers to cpu and memory panels --- modules/Cpu.qml | 27 +++++++++++++++++++++++++++ modules/Memory.qml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/modules/Cpu.qml b/modules/Cpu.qml index a34c45e..8346635 100644 --- a/modules/Cpu.qml +++ b/modules/Cpu.qml @@ -274,6 +274,33 @@ M.BarSection { color: M.Theme.base03 } + Item { + width: hoverPanel.contentWidth + height: 18 + + Text { + anchors.left: parent.left + anchors.leftMargin: 12 + anchors.verticalCenter: parent.verticalCenter + text: "PROCESS" + color: M.Theme.base03 + font.pixelSize: M.Theme.fontSize - 3 + font.family: M.Theme.fontFamily + font.letterSpacing: 1 + } + + Text { + anchors.right: parent.right + anchors.rightMargin: 12 + anchors.verticalCenter: parent.verticalCenter + text: "CPU" + color: M.Theme.base03 + font.pixelSize: M.Theme.fontSize - 3 + font.family: M.Theme.fontFamily + font.letterSpacing: 1 + } + } + // Top processes by CPU Repeater { model: root._procs.processes diff --git a/modules/Memory.qml b/modules/Memory.qml index 736df3a..0713095 100644 --- a/modules/Memory.qml +++ b/modules/Memory.qml @@ -228,6 +228,33 @@ M.BarSection { color: M.Theme.base03 } + Item { + width: hoverPanel.contentWidth + height: 18 + + Text { + anchors.left: parent.left + anchors.leftMargin: 12 + anchors.verticalCenter: parent.verticalCenter + text: "PROCESS" + color: M.Theme.base03 + font.pixelSize: M.Theme.fontSize - 3 + font.family: M.Theme.fontFamily + font.letterSpacing: 1 + } + + Text { + anchors.right: parent.right + anchors.rightMargin: 12 + anchors.verticalCenter: parent.verticalCenter + text: "MEM" + color: M.Theme.base03 + font.pixelSize: M.Theme.fontSize - 3 + font.family: M.Theme.fontFamily + font.letterSpacing: 1 + } + } + // Top processes by memory Repeater { model: root._procs.processes