From e9f0bd2a5a283ebe4c9eb4a14cb61c84cdb0806d Mon Sep 17 00:00:00 2001 From: erinn Date: Mon, 23 Nov 2020 16:19:34 -0800 Subject: [PATCH] add tabbar --- TabBar.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TabBar.qml b/TabBar.qml index d7390ee..7f8cb44 100644 --- a/TabBar.qml +++ b/TabBar.qml @@ -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