diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 19:47:33 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 19:47:33 +0800 |
commit | 3ed7406eeefb0ea2ef43ae31778832024f1a6c26 (patch) | |
tree | fac9554e6306055d767cf62cb19b74aeb642dfbb | |
parent | 96af5ddbf7f02f49481ccc7ead82232759f6c398 (diff) |
Header profile dropdown item uses BS btn font
-rw-r--r-- | Header.ui.qml | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Header.ui.qml b/Header.ui.qml index 776add4..e9d599e 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -1,6 +1,7 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 +import Bootstrap 5.3 ToolBar { property alias logo: logo @@ -10,21 +11,11 @@ ToolBar { property alias optionSettings: settings property alias optionHelp: help property alias optionSign: sign - property bool doesntEmbed: Qt.platform.os === "android" - || Qt.platform.os === "linux" - || Qt.platform.os === "osx" - || Qt.platform.os === "unix" - || Qt.platform.os === "windows" background: Rectangle { implicitHeight: 64 } - FontLoader { - id: roboto - source: doesntEmbed ? "" : "Roboto/Roboto-Medium.ttf" - } - Item { anchors.fill: parent @@ -67,12 +58,7 @@ ToolBar { text: qsTr("Sign Out") } delegate: MenuItem { - font { - family: doesntEmbed ? "Roboto" - : roboto.name - pixelSize: 15 - weight: Font.Medium - } + font: Bootstrap.btnFont } } } |