summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Header.ui.qml18
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
}
}
}