19import QtQuick.Controls.Suru 2.2
20import Lomiri.Components 1.3
21import Dekko.Components 1.0
22import Dekko.Lomiri.Constants 1.0
27 property var filterSections: []
28 property alias selectedIndex: row.currentIndex
33 LomiriNumberAnimation {duration: LomiriAnimation.SnapDuration}
39 color: Suru.backgroundColor
46 leftMargin: Style.defaultSpacing
48 highlightFollowsCurrentItem: true
50 snapMode: ListView.SnapToItem
51 orientation: ListView.Horizontal
52 layoutDirection: ListView.LeftToRight
53 cacheBuffer: units.gu(500)
56 delegate: AbstractButton {
58 width: label.implicitWidth + units.gu(3.5)
64 color: Suru.neutralColor
71 color: row.currentIndex === model.index ? LomiriColors.blue : Suru.tertiaryForegroundColor
72 anchors.horizontalCenter: parent.horizontalCenter
73 anchors.top: parent.top
74 anchors.topMargin: units.gu(0.2)
76 renderType: Text.NativeRendering
79 color: row.currentIndex === model.index ? LomiriColors.blue : Suru.neutralColor
82 anchors.bottom: parent.bottom
84 onClicked: row.currentIndex = model.index