Skip to content

Commit

Permalink
Center highlight in Music apps ClusterWidget
Browse files Browse the repository at this point in the history
Force the highlighted item to be centered in the ClusterWidget for
cosmetic reasons.

Change-Id: Ia214a5093d221e154320af0e024c6a01e0837f13
Reviewed-by: Nedim Hadzic <[email protected]>
  • Loading branch information
Erik Botö committed Oct 5, 2016
1 parent c9679d6 commit d48bacf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/com.pelagicore.music/ClusterWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d48bacf

Please sign in to comment.