summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-03 09:55:27 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-03 09:55:27 +0800
commitaed499a0a6fdc43f61930dcd36bc04f5602cbaae (patch)
tree441720ac9effb9f3f12ea384f81181c506e661ad
parent232f00fb063795b6d60116517af6e6839368dd16 (diff)
Tab item doesn't need to be overridden
in general cases.
-rw-r--r--TabItem.ui.qml4
1 files changed, 1 insertions, 3 deletions
diff --git a/TabItem.ui.qml b/TabItem.ui.qml
index c44f1a3..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: modelData
contentItem: Text {
- text: button.text
+ text: modelData
color: index == currentIndex ? "white" : "#066ac9"
font {
family: doesntEmbed ? "Roboto" : regular.name