Files
glassMxrph/quickshell/widgets/faces/VisualizerFace.qml
T
mxandClaude Opus 5.5 99e64a7713 Add glassMxrph shell sources
Initial commit of the Quickshell desktop suite: bar, dock, launcher,
settings, Control Center, dashboard, OSD, lock screen, desktop widgets,
plugin host with the vendored Noctalia/Omarchy compatibility layer,
helpers, packaging, tests and phase documentation.

Includes the optimization work so far: usage widgets and dashboard
gauges no longer animate continuously, desktop widgets pause while
covered, system controls stop flickering on background polls, dock app
matching uses an indexed catalog, and workspace ghosts are created only
for occupied slots.

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

41 lines
1.4 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick
import "../../services"
import "../../theme"
// Cava bars for system audio: rising bars, or mirrored around the centre line.
Face {
id: root
Component.onCompleted: CavaService.widgetConsumers++
Component.onDestruction: CavaService.widgetConsumers--
readonly property bool mirror: variant === "mirror"
Row {
id: bars
anchors.fill: parent
anchors.margins: 6
spacing: Math.max(2, width / 24 * 0.3)
Repeater {
model: 24
Item {
id: column
required property int index
readonly property real level: Math.max(0.03, CavaService.bars[index] || 0)
width: (bars.width - bars.spacing * 23) / 24
height: bars.height
Rectangle {
width: parent.width
height: Math.max(width, column.height * column.level)
y: root.mirror ? (column.height - height) / 2 : column.height - height
radius: width / 2
color: Qt.alpha(Theme.accentVivid, 0.55 + column.level * 0.45)
Behavior on height {
NumberAnimation {
duration: 60
}
}
}
}
}
}
}