aboutsummaryrefslogtreecommitdiff
path: root/components/MenuButton.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2017-11-16 19:00:47 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:00 +0100
commit50eafab5dc84487ac8ff4c962a96d1d3ecfdbc84 (patch)
tree0d5c70721cab62fdf7942fafa84836786baf8a55 /components/MenuButton.qml
parent229bade38c903ab4c3d2acdaec503ff60f453dc9 (diff)
downloadmonzero-gui-50eafab5dc84487ac8ff4c962a96d1d3ecfdbc84.tar.gz
monzero-gui-50eafab5dc84487ac8ff4c962a96d1d3ecfdbc84.tar.xz
monzero-gui-50eafab5dc84487ac8ff4c962a96d1d3ecfdbc84.zip
Have the menu buttons make use of the new font
Diffstat (limited to 'components/MenuButton.qml')
-rw-r--r--components/MenuButton.qml11
1 files changed, 10 insertions, 1 deletions
diff --git a/components/MenuButton.qml b/components/MenuButton.qml
index 600bcd51..928848a6 100644
--- a/components/MenuButton.qml
+++ b/components/MenuButton.qml
@@ -60,6 +60,15 @@ Rectangle {
property bool present: !under || under.checked || checked || under.numSelectedChildren > 0
height: present ? ((appWindow.height >= 800) ? 44 * scaleRatio : 52 * scaleRatio ) : 0
+ // Load custom fonts @TODO: should probably do this somewhere else
+ Text {
+ FontLoader { id: sfuid; source: "../fonts/SFUIDisplay-Bold.otf"; }
+ FontLoader { source: "../fonts/SFUIDisplay-Medium.otf"; }
+ FontLoader { source: "../fonts/SFUIDisplay-Light.otf"; }
+ FontLoader { source: "../fonts/SFUIDisplay-Regular.otf"; }
+ font.family: "SFUIDisplay";
+ }
+
// Button gradient whilst checked
// @TODO: replace by .png - gradient not available in 2d renderer
LinearGradient {
@@ -106,7 +115,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.right
anchors.leftMargin: 8 * scaleRatio
- font.family: "Arial"
+ font.family: "SFUIDisplay"
font.bold: true
font.pixelSize: 16 * scaleRatio
color: "#FFFFFF"