mirror of
https://github.com/monero-project/monero-gui
synced 2025-02-17 12:01:26 +01:00
Have the menu buttons make use of the new font
This commit is contained in:
parent
229bade38c
commit
50eafab5dc
@ -60,6 +60,15 @@ Rectangle {
|
|||||||
property bool present: !under || under.checked || checked || under.numSelectedChildren > 0
|
property bool present: !under || under.checked || checked || under.numSelectedChildren > 0
|
||||||
height: present ? ((appWindow.height >= 800) ? 44 * scaleRatio : 52 * scaleRatio ) : 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
|
// Button gradient whilst checked
|
||||||
// @TODO: replace by .png - gradient not available in 2d renderer
|
// @TODO: replace by .png - gradient not available in 2d renderer
|
||||||
LinearGradient {
|
LinearGradient {
|
||||||
@ -106,7 +115,7 @@ Rectangle {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.right
|
anchors.left: parent.right
|
||||||
anchors.leftMargin: 8 * scaleRatio
|
anchors.leftMargin: 8 * scaleRatio
|
||||||
font.family: "Arial"
|
font.family: "SFUIDisplay"
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 16 * scaleRatio
|
font.pixelSize: 16 * scaleRatio
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
|
Loading…
Reference in New Issue
Block a user