From a57da2f0cdd5e4b48936cf3d0973df04beab0cd9 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 7 Aug 2017 12:16:04 +0200 Subject: [PATCH] MiddlePanel scaling --- MiddlePanel.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 1ffd3132..18568f28 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -29,6 +29,7 @@ import QtQml 2.0 import QtQuick 2.2 +// QtQuick.Controls 2.0 isn't stable enough yet. Needs more testing. //import QtQuick.Controls 2.0 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 @@ -47,7 +48,7 @@ Rectangle { property string balanceText property string unlockedBalanceLabelText: qsTr("Unlocked Balance") + translationManager.emptyString property string unlockedBalanceText - property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 + property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 * scaleRatio // property int headerHeight: header.height property Transfer transferView: Transfer { } @@ -106,7 +107,7 @@ Rectangle { }, State { name: "Transfer" PropertyChanges { target: root; currentView: transferView } - PropertyChanges { target: mainFlickable; contentHeight: 1000 } + PropertyChanges { target: mainFlickable; contentHeight: 1000 * scaleRatio } }, State { name: "Receive" PropertyChanges { target: root; currentView: receiveView } @@ -126,7 +127,7 @@ Rectangle { }, State { name: "Settings" PropertyChanges { target: root; currentView: settingsView } - PropertyChanges { target: mainFlickable; contentHeight: 1200 } + PropertyChanges { target: mainFlickable; contentHeight: 1200 * scaleRatio } }, State { name: "Mining" PropertyChanges { target: root; currentView: miningView }