nix/nixos/desktop/quickshell/widgets/Seal.qml
Markus Zoppelt 3e8edb46af feat: replace waybar, walker, and mako with quickshell
Tokyo Night bar, Raycast-style launcher, overlay notifications,
and click panels for media, volume, sysinfo, agents, bluetooth,
network, and the Secure Boot seal.
2026-08-16 15:45:22 +02:00

54 lines
1.2 KiB
QML

import ".."
import "../ui"
Chip {
id: root
color: !Trust.locked ? Theme.red : (Trust.firmwareQuirk ? Theme.orange : Theme.green)
text: Trust.locked ? "󰒃" : "󰒃 !"
tip: Trust.tip
onClicked: panel.toggle(root)
PanelCard {
id: panel
paneWidth: 380
Heading {
title: Trust.locked ? "Sealed" : "Degraded"
subtitle: Trust.firmware || "this machine"
}
Section {
title: "BOOT"
StatRow {
label: "Secure Boot"
value: Trust.secureBoot ? "enabled" : "off"
}
StatRow {
label: "TPM2"
value: Trust.tpm ? "yes" : "no"
}
StatRow {
label: "Measured UKI"
value: Trust.uki ? "yes" : "no"
}
StatRow {
visible: Trust.firmwareQuirk
label: "Firmware"
value: "FQ0001"
}
}
Section {
title: "DISKS"
StatRow {
label: "LUKS"
value: Trust.unlocked + " / " + Trust.luks + " open"
}
}
}
}