aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/MusicVisualizer.qml
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
committerLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
commitd2747e2ca1e211a32e91e44010f40a00e0ac97e4 (patch)
treefb229d6a18541c7a5f1944390b21edde028955f9 /modules/system/quickshell/MusicVisualizer.qml
parent51b3cbd50b92d026549ce3ebff17ca9b3344f441 (diff)
feat(quickshell): add popup controls and privacy indicators
Diffstat (limited to 'modules/system/quickshell/MusicVisualizer.qml')
-rw-r--r--modules/system/quickshell/MusicVisualizer.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/system/quickshell/MusicVisualizer.qml b/modules/system/quickshell/MusicVisualizer.qml
index e136304..f0c3227 100644
--- a/modules/system/quickshell/MusicVisualizer.qml
+++ b/modules/system/quickshell/MusicVisualizer.qml
@@ -1,7 +1,5 @@
import QtQuick
-// iOS-style animated music visualizer bars.
-// Simulates audio reactivity by randomly changing bar heights when active.
Row {
id: root
property bool active: false
@@ -23,12 +21,15 @@ Row {
interval: 100 + Math.random() * 200
repeat: true
onTriggered: {
- bar.height = 4 + Math.random() * (root.height - 4)
+ bar.height = 4 + Math.random() * (root.height - 4);
}
}
Behavior on height {
- NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
+ NumberAnimation {
+ duration: 150
+ easing.type: Easing.OutCubic
+ }
}
}
}