From 3ed7406eeefb0ea2ef43ae31778832024f1a6c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 21 Mar 2023 19:47:33 +0800 Subject: Header profile dropdown item uses BS btn font --- Header.ui.qml | 18 ++---------------- 1 file 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 } } } -- cgit v1.2.3