feat(cava): update bar opacity using level

This commit is contained in:
tux
2026-09-04 22:56:32 +05:30
parent 6357b949b3
commit f2268f65e7

View File

@@ -39,7 +39,7 @@ Rectangle {
radius: bar.width / 2 radius: bar.width / 2
color: Theme.colors.accent color: Theme.colors.accent
antialiasing: true antialiasing: true
opacity: 0.55 + 0.45 * bar.height / Math.max(1, barRow.height) opacity: 0.45 + (bar.level * 0.55)
Behavior on height { Behavior on height {
NumberAnimation { NumberAnimation {