diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-08-05 23:15:59 +0200 |
|---|---|---|
| committer | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-08-05 23:45:25 +0200 |
| commit | 39f2b99c7b43a0ad7c04fc60cf80abcd9cee8918 (patch) | |
| tree | 49f79b97721863aa4770cc572e84746a5d2d84e5 | |
| parent | 0fed21d6de9a0b1b12a3512ceb14b160c63f680c (diff) | |
| download | monzero-gui-39f2b99c7b43a0ad7c04fc60cf80abcd9cee8918.tar.gz monzero-gui-39f2b99c7b43a0ad7c04fc60cf80abcd9cee8918.tar.xz monzero-gui-39f2b99c7b43a0ad7c04fc60cf80abcd9cee8918.zip | |
Settings alignment and size adjustments
| -rw-r--r-- | pages/settings/Navbar.qml | 12 | ||||
| -rw-r--r-- | pages/settings/SettingsNode.qml | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/pages/settings/Navbar.qml b/pages/settings/Navbar.qml index 5fc656ad..4f4736f3 100644 --- a/pages/settings/Navbar.qml +++ b/pages/settings/Navbar.qml @@ -58,7 +58,17 @@ Rectangle { property bool fontBold: true property var fontFamily: MoneroComponents.Style.fontRegular.name property string borderColor: "#808080" - property int textMargin: 28 // left-right margins in a given cell + property int textMargin: { + // left-right margins for a given cell + console.log(appWindow.width); + if(isMobile){ + return 18; + } else if(appWindow.width < 890){ + return 40; + } else { + return 64; + } + } Image { Layout.preferredWidth: 2 Layout.preferredHeight: 32 diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml index b5bf6d48..0e9bccfb 100644 --- a/pages/settings/SettingsNode.qml +++ b/pages/settings/SettingsNode.qml @@ -110,14 +110,14 @@ Rectangle{ color: "white" font.bold: true font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 18 * scaleRatio + font.pixelSize: 16 * scaleRatio text: qsTr("Local node") + translationManager.emptyString } TextArea { id: localNodeArea anchors.top: localNodeHeader.bottom - anchors.topMargin: 2 * scaleRatio + anchors.topMargin: 4 * scaleRatio anchors.left: localNodeIcon.right anchors.leftMargin: 14 * scaleRatio color: MoneroComponents.Style.dimmedFontColor @@ -209,14 +209,14 @@ Rectangle{ color: "white" font.bold: true font.family: MoneroComponents.Style.fontRegular.name - font.pixelSize: 18 * scaleRatio + font.pixelSize: 16 * scaleRatio text: qsTr("Remote node") + translationManager.emptyString } TextArea { id: remoteNodeArea anchors.top: remoteNodeHeader.bottom - anchors.topMargin: 2 * scaleRatio + anchors.topMargin: 4 * scaleRatio anchors.left: remoteNodeIcon.right anchors.leftMargin: 14 * scaleRatio color: MoneroComponents.Style.dimmedFontColor |
