Files
mxandClaude Opus 5.5 bf0ef09cec Share demand counting and jump easing; split Settings sidebar
Add services/Demand.qml, which holds one count on a service's demand
counter while active. It replaces 13 hand-written consumer counters
across the bar, Control Center, dashboard, media and desktop widgets.
The desktop Cava widget now releases Cava while its desktop is covered.

Add components/JumpValue.qml for the "animate only visible jumps" rule
shared by the dashboard gauge and resource bars.

Move the Settings sidebar (search and navigation) into
settings/SettingsSidebar.qml and the drag handle into
settings/controls/SettingsDragArea.qml, halving Settings.qml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:42:56 +02:00

29 lines
649 B
QML

pragma ComponentBehavior: Bound
import QtQuick
import "../services"
import "../theme"
Item {
id: root
implicitHeight: 28
Demand {
service: CavaService
active: root.visible
}
Row {
anchors.fill: parent
spacing: 3
Repeater {
model: 24
Rectangle {
required property int index
width: Math.max(1, (root.width - 69) / 24)
height: Math.max(2, root.height * (CavaService.bars[index] || 0))
y: root.height - height
radius: 2
color: Theme.accent
}
}
}
}