forked from Public/monero-gui
Settings alignment and size adjustments
This commit is contained in:
@@ -58,7 +58,17 @@ Rectangle {
|
|||||||
property bool fontBold: true
|
property bool fontBold: true
|
||||||
property var fontFamily: MoneroComponents.Style.fontRegular.name
|
property var fontFamily: MoneroComponents.Style.fontRegular.name
|
||||||
property string borderColor: "#808080"
|
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 {
|
Image {
|
||||||
Layout.preferredWidth: 2
|
Layout.preferredWidth: 2
|
||||||
Layout.preferredHeight: 32
|
Layout.preferredHeight: 32
|
||||||
|
|||||||
@@ -110,14 +110,14 @@ Rectangle{
|
|||||||
color: "white"
|
color: "white"
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: 18 * scaleRatio
|
font.pixelSize: 16 * scaleRatio
|
||||||
text: qsTr("Local node") + translationManager.emptyString
|
text: qsTr("Local node") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
id: localNodeArea
|
id: localNodeArea
|
||||||
anchors.top: localNodeHeader.bottom
|
anchors.top: localNodeHeader.bottom
|
||||||
anchors.topMargin: 2 * scaleRatio
|
anchors.topMargin: 4 * scaleRatio
|
||||||
anchors.left: localNodeIcon.right
|
anchors.left: localNodeIcon.right
|
||||||
anchors.leftMargin: 14 * scaleRatio
|
anchors.leftMargin: 14 * scaleRatio
|
||||||
color: MoneroComponents.Style.dimmedFontColor
|
color: MoneroComponents.Style.dimmedFontColor
|
||||||
@@ -209,14 +209,14 @@ Rectangle{
|
|||||||
color: "white"
|
color: "white"
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: 18 * scaleRatio
|
font.pixelSize: 16 * scaleRatio
|
||||||
text: qsTr("Remote node") + translationManager.emptyString
|
text: qsTr("Remote node") + translationManager.emptyString
|
||||||
}
|
}
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
id: remoteNodeArea
|
id: remoteNodeArea
|
||||||
anchors.top: remoteNodeHeader.bottom
|
anchors.top: remoteNodeHeader.bottom
|
||||||
anchors.topMargin: 2 * scaleRatio
|
anchors.topMargin: 4 * scaleRatio
|
||||||
anchors.left: remoteNodeIcon.right
|
anchors.left: remoteNodeIcon.right
|
||||||
anchors.leftMargin: 14 * scaleRatio
|
anchors.leftMargin: 14 * scaleRatio
|
||||||
color: MoneroComponents.Style.dimmedFontColor
|
color: MoneroComponents.Style.dimmedFontColor
|
||||||
|
|||||||
Reference in New Issue
Block a user