aboutsummaryrefslogtreecommitdiff
path: root/components/PasswordDialog.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/PasswordDialog.qml
parent66bb3fe7ac2b4e890ae7b89931f537bbfea1dd46 (diff)
downloadmonzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.gz
monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.xz
monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.zip
components mobile scaling
Diffstat (limited to 'components/PasswordDialog.qml')
-rw-r--r--components/PasswordDialog.qml18
1 files changed, 7 insertions, 11 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml
index db9654cb..62e3a31a 100644
--- a/components/PasswordDialog.qml
+++ b/components/PasswordDialog.qml
@@ -53,8 +53,8 @@ Window {
}
// TODO: implement without hardcoding sizes
- width: 480
- height: walletName ? 240 : 200
+// width: isMobile ? screenWidth : 480
+// height: isMobile ? screenHeight - mobileHeader.height : walletName ? 240 : 200
// Make window draggable
MouseArea {
@@ -68,7 +68,7 @@ Window {
ColumnLayout {
id: mainLayout
spacing: 10
- anchors { fill: parent; margins: 35 }
+ anchors { fill: parent; margins: 35 * scaleRatio }
ColumnLayout {
id: column
@@ -81,20 +81,20 @@ Window {
Layout.columnSpan: 2
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
- font.pixelSize: 24
+ font.pixelSize: 24 * scaleRatio
font.family: "Arial"
color: "#555555"
}
TextField {
id : passwordInput
- focus: true
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
+ Layout.maximumWidth: 400 * scaleRatio
horizontalAlignment: TextInput.AlignHCenter
verticalAlignment: TextInput.AlignVCenter
font.family: "Arial"
- font.pixelSize: 32
+ font.pixelSize: 32 * scaleRatio
echoMode: TextInput.Password
KeyNavigation.tab: okButton
@@ -142,13 +142,11 @@ Window {
// Ok/Cancel buttons
RowLayout {
id: buttons
- spacing: 60
+ spacing: 60 * scaleRatio
Layout.alignment: Qt.AlignHCenter
MoneroComponents.StandardButton {
id: cancelButton
- width: 120
- fontSize: 14
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"
@@ -162,8 +160,6 @@ Window {
}
MoneroComponents.StandardButton {
id: okButton
- width: 120
- fontSize: 14
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#FF6C3C"