This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nova-shell/shell/applets/SystemdApplet.qml

49 lines
1.3 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick
import "../services" as S
import NovaStats as NS
Column {
id: root
required property color accentColor
property bool active: true
signal contentResized
onHeightChanged: root.contentResized()
Repeater {
model: S.SystemdService.machines
delegate: Column {
id: _row
required property var modelData
required property int index
width: root.width
Separator {
visible: _row.index > 0
}
SystemdMachineSection {
width: _row.width
accentColor: root.accentColor
machineName: _row.modelData.isLocal ? "" : _row.modelData.name
title: _row.modelData.name
marker: _row.modelData.marker ?? ""
systemState: _row.modelData.systemState ?? "unknown"
runningCount: _row.modelData.runningCount ?? 0
totalCount: _row.modelData.totalCount ?? 0
failedUnits: _row.modelData.failedUnits ?? []
runningUnits: _row.modelData.runningUnits ?? []
onContentResized: root.contentResized()
}
}
}
Item {
width: 1
height: 4
}
}