summaryrefslogtreecommitdiff
path: root/HeaderToolBar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'HeaderToolBar.qml')
-rw-r--r--HeaderToolBar.qml25
1 files changed, 23 insertions, 2 deletions
diff --git a/HeaderToolBar.qml b/HeaderToolBar.qml
index 9ba0bfe..f020a96 100644
--- a/HeaderToolBar.qml
+++ b/HeaderToolBar.qml
@@ -3,6 +3,12 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
ToolBar {
+ FontLoader {
+ id: roboto
+ name: "Roboto"
+ source: "Roboto/Roboto-Medium.ttf"
+ }
+
RowLayout {
anchors.fill: parent
layoutDirection: Qt.RightToLeft
@@ -25,8 +31,23 @@ ToolBar {
Action {
text: qsTr("Sign Out")
}
- Action {
- text: qsTr("Dark Mode")
+ delegate: MenuItem {
+ font {
+ family: Qt.platform.os
+ == "android"
+ || Qt.platform.os
+ == "linux"
+ || Qt.platform.os
+ == "osx"
+ || Qt.platform.os
+ == "unix"
+ || Qt.platform.os
+ == "windows"
+ ? "Roboto"
+ : roboto.name
+ pixelSize: 15
+ weight: Font.Medium
+ }
}
}
}