aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorErik Botö <erik.boto@pelagicore.com>2016-10-05 10:37:36 +0200
committerErik Botö <erik.boto@pelagicore.com>2016-10-05 10:19:45 +0000
commitd48bacf3427168f4c48a744ade24f2864e864570 (patch)
treed365210ff69cd9b40ac0a49e39527e330f8a452f /apps
parentc9679d6e773cd242a8d910aa062743f00ed8e68c (diff)
Center highlight in Music apps ClusterWidget
Force the highlighted item to be centered in the ClusterWidget for cosmetic reasons. Change-Id: Ia214a5093d221e154320af0e024c6a01e0837f13 Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/com.pelagicore.music/ClusterWidget.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/com.pelagicore.music/ClusterWidget.qml b/apps/com.pelagicore.music/ClusterWidget.qml
index 654f87a..e0dcac7 100644
--- a/apps/com.pelagicore.music/ClusterWidget.qml
+++ b/apps/com.pelagicore.music/ClusterWidget.qml
@@ -53,6 +53,9 @@ Item {
border.color: Qt.lighter(color, 1.2)
}
highlightMoveDuration: 75
+ preferredHighlightBegin: parent.height / 2
+ preferredHighlightEnd: parent.height / 2
+ highlightRangeMode: ListView.StrictlyEnforceRange
delegate: UIElement {
hspan: 4
vspan: 2