summaryrefslogtreecommitdiff
path: root/TabItem.ui.qml
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-03-03 21:05:57 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-03-03 21:05:57 +0700
commitb63c9ee0ce3d17675e5ad8c3c120fb8cea4f7bb0 (patch)
treeeaa23dc631df7aec969b484da39f44ea72d8cf3b /TabItem.ui.qml
parente2ca2eaa7937a78ff0ed596bae7c8354a2cabf4e (diff)
parentaed499a0a6fdc43f61930dcd36bc04f5602cbaae (diff)
Merge commit 'aed499a0a6fdc43f61930dcd36bc04f5602cbaae'
Diffstat (limited to 'TabItem.ui.qml')
-rw-r--r--TabItem.ui.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/TabItem.ui.qml b/TabItem.ui.qml
index bf895d4..e0bb31c 100644
--- a/TabItem.ui.qml
+++ b/TabItem.ui.qml
@@ -2,7 +2,6 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
Button {
- id: button
property int currentIndex: 0
property bool doesntEmbed: Qt.platform.os === "android"
|| Qt.platform.os === "linux"
@@ -18,9 +17,8 @@ Button {
height: 38
horizontalPadding: 16
verticalPadding: 8
- text: label
contentItem: Text {
- text: button.text
+ text: modelData
color: index == currentIndex ? "white" : "#066ac9"
font {
family: doesntEmbed ? "Roboto" : regular.name