aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/MusicVisualizer.qml
diff options
context:
space:
mode:
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
+ }
}
}
}