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>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-07 22:42:56 +02:00
1 parent 99e64a7713
commit bf0ef09cec
18 files changed
+595 -570

No files matched your search

+5 -16
View File
@@ -1,4 +1,5 @@
import QtQuick
import "../components"
import "../theme"
// Ring gauge (0–100) with a centred label; null values draw an empty ring.
@@ -12,23 +13,11 @@ Item {
property string caption: ""
implicitWidth: size
implicitHeight: size
readonly property real target: Number.isFinite(value) ? Math.max(0, Math.min(100, value)) : 0
// Only visible jumps animate: easing every small sample change kept the
// window rendering at the display's refresh rate.
property real shown
property bool easeJump: false
Component.onCompleted: shown = target
onTargetChanged: {
easeJump = Math.abs(target - shown) >= 2;
shown = target;
}
Behavior on shown {
enabled: root.easeJump
NumberAnimation {
duration: Theme.duration * 2
easing.type: Easing.OutCubic
}
JumpValue {
id: level
target: Number.isFinite(root.value) ? Math.max(0, Math.min(100, root.value)) : 0
}
readonly property real shown: level.value
onShownChanged: canvas.requestPaint()
onColorChanged: canvas.requestPaint()
Canvas {