From d48bacf3427168f4c48a744ade24f2864e864570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bot=C3=B6?= Date: Wed, 5 Oct 2016 10:37:36 +0200 Subject: [PATCH] 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 --- apps/com.pelagicore.music/ClusterWidget.qml | 3 +++ 1 file changed, 3 insertions(+) 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