add tabbar

This commit is contained in:
erinn 2020-11-23 16:19:34 -08:00
parent d78fcdc8e6
commit e9f0bd2a5a
1 changed files with 4 additions and 1 deletions

View File

@ -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