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