aboutsummaryrefslogtreecommitdiff
path: root/components/MobileHeader.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-08-07 15:47:56 +0200
committerJaquee <jaquee.monero@gmail.com>2017-11-03 16:57:11 +0100
commit9e0db8f4ffa7d979ffb07cd9d76aee885c261196 (patch)
treecd8846ccc546cb6328de47695411d89f679df79b /components/MobileHeader.qml
parent66bb3fe7ac2b4e890ae7b89931f537bbfea1dd46 (diff)
downloadmonzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.gz
monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.xz
monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.zip
components mobile scaling
Diffstat (limited to 'components/MobileHeader.qml')
-rw-r--r--components/MobileHeader.qml42
1 files changed, 20 insertions, 22 deletions
diff --git a/components/MobileHeader.qml b/components/MobileHeader.qml
index 73b22430..0cd9c5e6 100644
--- a/components/MobileHeader.qml
+++ b/components/MobileHeader.qml
@@ -10,17 +10,16 @@ Rectangle {
anchors.leftMargin: 1
anchors.rightMargin: 1
Layout.fillWidth: true
- Layout.preferredHeight: 64
+ Layout.preferredHeight: 64 * scaleRatio
color: "#FFFFFF"
-// visible: basicMode
Image {
id: logo
- visible: appWindow.width > 460
+ visible: appWindow.width > 460 * scaleRatio
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -5
anchors.left: parent.left
- anchors.leftMargin: appWindow.persistentSettings.customDecorations ? 20 : 40
+ anchors.leftMargin: 50 * scaleRatio
source: "../images/moneroLogo2.png"
}
@@ -28,9 +27,8 @@ Rectangle {
id: icon
visible: !logo.visible
anchors.verticalCenter: parent.verticalCenter
-// anchors.verticalCenterOffset: -5
anchors.left: parent.left
- anchors.leftMargin: appWindow.persistentSettings.customDecorations ? 20 : 40
+ anchors.leftMargin: 40 * scaleRatio
source: "../images/moneroIcon.png"
}
@@ -38,16 +36,16 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
anchors.top: parent.top
anchors.right: parent.right
- anchors.topMargin: 10
- width: 256
+ anchors.topMargin: 10 * scaleRatio
+ width: 256 * scaleRatio
columns: 3
Text {
id: balanceLabel
- width: 116
- height: 20
+ width: 116 * scaleRatio
+ height: 20 * scaleRatio
font.family: "Arial"
- font.pixelSize: 12
+ font.pixelSize: 12 * scaleRatio
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
@@ -58,10 +56,10 @@ Rectangle {
Text {
id: balanceText
- width: 110
- height: 20
+ width: 110 * scaleRatio
+ height: 20 * scaleRatio
font.family: "Arial"
- font.pixelSize: 18
+ font.pixelSize: 18 * scaleRatio
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
@@ -71,8 +69,8 @@ Rectangle {
}
Item {
- height: 20
- width: 20
+ height: 20 * scaleRatio
+ width: 20 * scaleRatio
Image {
anchors.verticalCenter: parent.verticalCenter
@@ -82,10 +80,10 @@ Rectangle {
}
Text {
- width: 116
- height: 20
+ width: 116 * scaleRatio
+ height: 20 * scaleRatio
font.family: "Arial"
- font.pixelSize: 12
+ font.pixelSize: 12 * scaleRatio
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
@@ -96,10 +94,10 @@ Rectangle {
Text {
id: availableBalanceText
- width: 110
- height: 20
+ width: 110 * scaleRatio
+ height: 20 * scaleRatio
font.family: "Arial"
- font.pixelSize: 14
+ font.pixelSize: 14 * scaleRatio
font.letterSpacing: -1
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft