summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-21 18:15:31 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-21 18:15:31 +0800
commitddd0dbd8a2dd45f8eb3af2e01e60537d55aeea6f (patch)
tree9e349ac4b40f12a5a0c40a65c3e666261340b9b2
parentdb0a295904cf54c03023a9f64b458cdcddf363c3 (diff)
Tab item refers to BS properties
-rw-r--r--TabItem.ui.qml15
1 files changed, 3 insertions, 12 deletions
diff --git a/TabItem.ui.qml b/TabItem.ui.qml
index e0bb31c..82c8c7d 100644
--- a/TabItem.ui.qml
+++ b/TabItem.ui.qml
@@ -1,18 +1,9 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
+import Bootstrap 5.3
Button {
property int currentIndex: 0
- property bool doesntEmbed: Qt.platform.os === "android"
- || Qt.platform.os === "linux"
- || Qt.platform.os === "osx"
- || Qt.platform.os === "unix"
- || Qt.platform.os === "windows"
-
- FontLoader {
- id: regular
- source: doesntEmbed ? "" : "Roboto/Roboto-Regular.ttf"
- }
height: 38
horizontalPadding: 16
@@ -21,8 +12,8 @@ Button {
text: modelData
color: index == currentIndex ? "white" : "#066ac9"
font {
- family: doesntEmbed ? "Roboto" : regular.name
- pointSize: 15
+ family: Bootstrap.bodyFont.family
+ pointSize: Bootstrap.bodyFont.pointSize
}
}
background: Rectangle {