diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-08-07 15:47:56 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-11-03 16:57:11 +0100 |
| commit | 9e0db8f4ffa7d979ffb07cd9d76aee885c261196 (patch) | |
| tree | cd8846ccc546cb6328de47695411d89f679df79b /components/StandardDialog.qml | |
| parent | 66bb3fe7ac2b4e890ae7b89931f537bbfea1dd46 (diff) | |
| download | monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.gz monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.xz monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.zip | |
components mobile scaling
Diffstat (limited to 'components/StandardDialog.qml')
| -rw-r--r-- | components/StandardDialog.qml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml index 681c2d3d..5c62919c 100644 --- a/components/StandardDialog.qml +++ b/components/StandardDialog.qml @@ -68,8 +68,8 @@ Window { } // TODO: implement without hardcoding sizes - width: 480 - height: 280 + width: isMobile ? screenWidth : 480 + height: isMobile ? screenHeight : 280 ColumnLayout { id: mainLayout @@ -84,7 +84,7 @@ Window { Label { id: dialogTitle horizontalAlignment: Text.AlignHCenter - font.pixelSize: 32 + font.pixelSize: 32 * scaleRatio font.family: "Arial" color: "#555555" } @@ -99,7 +99,7 @@ Window { font.family: "Arial" textFormat: TextEdit.AutoText readOnly: true - font.pixelSize: 12 + font.pixelSize: 12 * scaleRatio } } @@ -111,8 +111,6 @@ Window { MoneroComponents.StandardButton { id: cancelButton - width: 120 - fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" @@ -126,8 +124,6 @@ Window { MoneroComponents.StandardButton { id: okButton - width: 120 - fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" |
