summary refs log tree commit diff
path: root/resources/qml/ui/Ripple.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-14 16:24:04 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-14 16:24:04 +0100
commit47a7adf8236d48ae941e5a892d34f6b9488ddc08 (patch)
tree4095d728d71f7fa4df5b34a44f7c0e6cf729fd37 /resources/qml/ui/Ripple.qml
parentRemove some more allocations (diff)
downloadnheko-47a7adf8236d48ae941e5a892d34f6b9488ddc08.tar.xz
Use readonly properties where possible
Diffstat (limited to '')
-rw-r--r--resources/qml/ui/Ripple.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/qml/ui/Ripple.qml b/resources/qml/ui/Ripple.qml

index b240f421..426182ee 100644 --- a/resources/qml/ui/Ripple.qml +++ b/resources/qml/ui/Ripple.qml
@@ -13,9 +13,9 @@ Item { property real radius: 0 property color color: "#22000000" property real maxRadius: Math.max(width, height) - property real radiusAnimationRate: 0.05 - property real radiusTailAnimationRate: 0.5 - property real opacityAnimationDuration: 300 + readonly property real radiusAnimationRate: 0.05 + readonly property real radiusTailAnimationRate: 0.5 + readonly property real opacityAnimationDuration: 300 readonly property real diameter: radius * 2 property real centerX property real centerY