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

+12 -14
View File
@@ -18,21 +18,19 @@ Item {
readonly property var player: MediaService.player
// Streams report no length or absurd ones; show them as live.
readonly property bool live: MediaService.length <= 0 || MediaService.length > 7 * 86400
property bool subscribed: false
onCurrentChanged: sync()
Component.onCompleted: sync()
Component.onDestruction: if (subscribed) {
MediaService.progressConsumers--;
CavaService.widgetConsumers--;
onCurrentChanged: if (current)
EasyEffectsService.refresh()
Component.onCompleted: if (current)
EasyEffectsService.refresh()
Demand {
service: MediaService
counter: "progressConsumers"
active: root.current
}
function sync() {
if (current === subscribed)
return;
MediaService.progressConsumers += current ? 1 : -1;
CavaService.widgetConsumers += current ? 1 : -1;
subscribed = current;
if (current)
EasyEffectsService.refresh();
Demand {
service: CavaService
counter: "widgetConsumers"
active: root.current
}
RowLayout {