add tabbar
This commit is contained in:
parent
d78fcdc8e6
commit
e9f0bd2a5a
|
@ -15,6 +15,9 @@ import "../opaque/theme"
|
|||
ListView {
|
||||
id: root
|
||||
|
||||
// properties
|
||||
property color highlightColor: Theme.dividerColor
|
||||
|
||||
// contents & appearance config
|
||||
model: ["your", "model", "here"]
|
||||
delegate: Label {
|
||||
|
@ -30,7 +33,7 @@ ListView {
|
|||
MouseArea { anchors.fill: parent; onClicked: root.currentIndex = index; }
|
||||
width: root.width / root.model.length
|
||||
}
|
||||
highlight: Rectangle { radius: 5; color: Theme.dividerColor; }
|
||||
highlight: Rectangle { radius: 5; color: root.highlightColor; }
|
||||
|
||||
// functionality
|
||||
height: Theme.secondaryTextSize * gcd.themeScale + 5
|
||||
|
|
Loading…
Reference in New Issue