nix/nixos/desktop/quickshell/ui/Meter.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

29 lines
592 B
QML

import QtQuick
import ".."
Item {
property real value: 0
property bool hot: value >= 0.9
implicitHeight: 4
Rectangle {
anchors.fill: parent
radius: 2
color: Theme.bgHighlight
}
Rectangle {
anchors.left: parent.left
height: parent.height
radius: 2
width: parent.width * Math.max(0, Math.min(1, value))
color: hot ? Theme.red : Theme.fg
Behavior on width {
NumberAnimation {
duration: 220
easing.type: Easing.OutCubic
}
}
}
}