vertical bar

This commit is contained in:
end-4
2025-08-15 22:17:27 +07:00
parent 25a0c88670
commit 9fc0d26eb5
17 changed files with 1334 additions and 80 deletions
@@ -0,0 +1,41 @@
import qs.services
import QtQuick
import QtQuick.Layouts
import "../bar" as Bar
MouseArea {
id: root
property bool alwaysShowAllResources: false
implicitHeight: columnLayout.implicitHeight
implicitWidth: columnLayout.implicitWidth
hoverEnabled: true
ColumnLayout {
id: columnLayout
spacing: 10
anchors.fill: parent
Resource {
Layout.alignment: Qt.AlignHCenter
iconName: "memory"
percentage: ResourceUsage.memoryUsedPercentage
}
Resource {
Layout.alignment: Qt.AlignHCenter
iconName: "swap_horiz"
percentage: ResourceUsage.swapUsedPercentage
}
Resource {
Layout.alignment: Qt.AlignHCenter
iconName: "planner_review"
percentage: ResourceUsage.cpuUsage
}
}
Bar.ResourcesPopup {
hoverTarget: root
}
}