mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-15 19:47:25 -04:00
Remove scaleRatio
This commit is contained in:
@@ -42,17 +42,17 @@ Rectangle{
|
||||
/* main layout */
|
||||
ColumnLayout {
|
||||
id: root
|
||||
anchors.margins: (isMobile)? 17 * scaleRatio : 20 * scaleRatio
|
||||
anchors.margins: (isMobile)? 17 : 20
|
||||
anchors.topMargin: 0
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
|
||||
spacing: 0 * scaleRatio
|
||||
spacing: 0
|
||||
property int labelWidth: 120
|
||||
property int editWidth: 400
|
||||
property int lineEditFontSize: 14 * scaleRatio
|
||||
property int lineEditFontSize: 14
|
||||
property int buttonWidth: 110
|
||||
|
||||
Rectangle {
|
||||
@@ -63,7 +63,7 @@ Rectangle{
|
||||
Rectangle {
|
||||
id: localNodeDivider
|
||||
Layout.fillWidth: true
|
||||
anchors.topMargin: 0 * scaleRatio
|
||||
anchors.topMargin: 0
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: 1
|
||||
@@ -93,7 +93,7 @@ Rectangle{
|
||||
height: 32
|
||||
width: 32
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 16 * scaleRatio
|
||||
anchors.leftMargin: 16
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
MoneroEffects.ImageMask {
|
||||
@@ -113,25 +113,25 @@ Rectangle{
|
||||
MoneroComponents.TextPlain {
|
||||
id: localNodeHeader
|
||||
anchors.left: localNodeIcon.right
|
||||
anchors.leftMargin: 14 * scaleRatio
|
||||
anchors.leftMargin: 14
|
||||
anchors.top: parent.top
|
||||
color: MoneroComponents.Style.defaultFontColor
|
||||
opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8
|
||||
font.bold: true
|
||||
font.family: MoneroComponents.Style.fontRegular.name
|
||||
font.pixelSize: 16 * scaleRatio
|
||||
font.pixelSize: 16
|
||||
text: qsTr("Local node") + translationManager.emptyString
|
||||
}
|
||||
|
||||
TextArea {
|
||||
id: localNodeArea
|
||||
anchors.top: localNodeHeader.bottom
|
||||
anchors.topMargin: 4 * scaleRatio
|
||||
anchors.topMargin: 4
|
||||
anchors.left: localNodeIcon.right
|
||||
anchors.leftMargin: 14 * scaleRatio
|
||||
anchors.leftMargin: 14
|
||||
color: MoneroComponents.Style.dimmedFontColor
|
||||
font.family: MoneroComponents.Style.fontRegular.name
|
||||
font.pixelSize: 15 * scaleRatio
|
||||
font.pixelSize: 15
|
||||
horizontalAlignment: TextInput.AlignLeft
|
||||
selectByMouse: false
|
||||
wrapMode: Text.WordWrap;
|
||||
@@ -169,7 +169,7 @@ Rectangle{
|
||||
Rectangle {
|
||||
id: remoteNodeDivider
|
||||
Layout.fillWidth: true
|
||||
anchors.topMargin: 0 * scaleRatio
|
||||
anchors.topMargin: 0
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
height: 1
|
||||
@@ -199,7 +199,7 @@ Rectangle{
|
||||
height: 32
|
||||
width: 32
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: 16 * scaleRatio
|
||||
anchors.leftMargin: 16
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
MoneroEffects.ImageMask {
|
||||
@@ -218,25 +218,25 @@ Rectangle{
|
||||
MoneroComponents.TextPlain {
|
||||
id: remoteNodeHeader
|
||||
anchors.left: remoteNodeIcon.right
|
||||
anchors.leftMargin: 14 * scaleRatio
|
||||
anchors.leftMargin: 14
|
||||
anchors.top: parent.top
|
||||
color: MoneroComponents.Style.defaultFontColor
|
||||
opacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.8
|
||||
font.bold: true
|
||||
font.family: MoneroComponents.Style.fontRegular.name
|
||||
font.pixelSize: 16 * scaleRatio
|
||||
font.pixelSize: 16
|
||||
text: qsTr("Remote node") + translationManager.emptyString
|
||||
}
|
||||
|
||||
TextArea {
|
||||
id: remoteNodeArea
|
||||
anchors.top: remoteNodeHeader.bottom
|
||||
anchors.topMargin: 4 * scaleRatio
|
||||
anchors.topMargin: 4
|
||||
anchors.left: remoteNodeIcon.right
|
||||
anchors.leftMargin: 14 * scaleRatio
|
||||
anchors.leftMargin: 14
|
||||
color: MoneroComponents.Style.dimmedFontColor
|
||||
font.family: MoneroComponents.Style.fontRegular.name
|
||||
font.pixelSize: 15 * scaleRatio
|
||||
font.pixelSize: 15
|
||||
activeFocusOnPress: false
|
||||
horizontalAlignment: TextInput.AlignLeft
|
||||
selectByMouse: false
|
||||
@@ -269,7 +269,7 @@ Rectangle{
|
||||
Rectangle {
|
||||
id: localNodeBottomDivider
|
||||
Layout.fillWidth: true
|
||||
anchors.topMargin: 0 * scaleRatio
|
||||
anchors.topMargin: 0
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
@@ -282,21 +282,21 @@ Rectangle{
|
||||
ColumnLayout {
|
||||
id: remoteNodeLayout
|
||||
anchors.margins: 0
|
||||
spacing: 20 * scaleRatio
|
||||
spacing: 20
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: 20
|
||||
visible: !isMobile && persistentSettings.useRemoteNode
|
||||
|
||||
MoneroComponents.WarningBox {
|
||||
Layout.topMargin: 26 * scaleRatio
|
||||
Layout.bottomMargin: 6 * scaleRatio
|
||||
Layout.topMargin: 26
|
||||
Layout.bottomMargin: 6
|
||||
text: qsTr("To find a remote node, type 'Monero remote node' into your favorite search engine. Please ensure the node is run by a trusted third-party.") + translationManager.emptyString
|
||||
}
|
||||
|
||||
MoneroComponents.RemoteNodeEdit {
|
||||
id: remoteNodeEdit
|
||||
Layout.minimumWidth: 100 * scaleRatio
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
Layout.minimumWidth: 100
|
||||
placeholderFontSize: 15
|
||||
|
||||
daemonAddrLabelText: qsTr("Address")
|
||||
daemonPortLabelText: qsTr("Port")
|
||||
@@ -326,9 +326,9 @@ Rectangle{
|
||||
labelText: "Daemon username"
|
||||
text: persistentSettings.daemonUsername
|
||||
placeholderText: qsTr("(optional)") + translationManager.emptyString
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
labelFontSize: 14 * scaleRatio
|
||||
fontSize: 15 * scaleRatio
|
||||
placeholderFontSize: 15
|
||||
labelFontSize: 14
|
||||
fontSize: 15
|
||||
}
|
||||
|
||||
MoneroComponents.LineEdit {
|
||||
@@ -338,9 +338,9 @@ Rectangle{
|
||||
text: persistentSettings.daemonPassword
|
||||
placeholderText: qsTr("Password") + translationManager.emptyString
|
||||
echoMode: TextInput.Password
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
labelFontSize: 14 * scaleRatio
|
||||
fontSize: 15 * scaleRatio
|
||||
placeholderFontSize: 15
|
||||
labelFontSize: 14
|
||||
fontSize: 15
|
||||
}
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ Rectangle{
|
||||
|
||||
ColumnLayout {
|
||||
id: localNodeLayout
|
||||
spacing: 20 * scaleRatio
|
||||
spacing: 20
|
||||
Layout.topMargin: 40
|
||||
visible: !isMobile && !persistentSettings.useRemoteNode
|
||||
|
||||
@@ -397,12 +397,12 @@ Rectangle{
|
||||
id: blockchainFolder
|
||||
Layout.preferredWidth: 200
|
||||
Layout.fillWidth: true
|
||||
fontSize: 15 * scaleRatio
|
||||
labelFontSize: 14 * scaleRatio
|
||||
fontSize: 15
|
||||
labelFontSize: 14
|
||||
property string style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>"
|
||||
labelText: qsTr("Blockchain location") + style + qsTr(" <a href='#'> (change)</a>") + translationManager.emptyString
|
||||
placeholderText: qsTr("(default)") + translationManager.emptyString
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
placeholderFontSize: 15
|
||||
text: {
|
||||
if(persistentSettings.blockchainDataDir.length > 0){
|
||||
return persistentSettings.blockchainDataDir;
|
||||
@@ -423,12 +423,12 @@ Rectangle{
|
||||
MoneroComponents.LineEditMulti {
|
||||
id: daemonFlags
|
||||
Layout.fillWidth: true
|
||||
labelFontSize: 14 * scaleRatio
|
||||
fontSize: 15 * scaleRatio
|
||||
labelFontSize: 14
|
||||
fontSize: 15
|
||||
wrapMode: Text.WrapAnywhere
|
||||
labelText: qsTr("Daemon startup flags") + translationManager.emptyString
|
||||
placeholderText: qsTr("(optional)") + translationManager.emptyString
|
||||
placeholderFontSize: 15 * scaleRatio
|
||||
placeholderFontSize: 15
|
||||
text: persistentSettings.daemonFlags
|
||||
addressValidation: false
|
||||
onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text;
|
||||
@@ -442,8 +442,8 @@ Rectangle{
|
||||
|
||||
MoneroComponents.RemoteNodeEdit {
|
||||
id: bootstrapNodeEdit
|
||||
Layout.minimumWidth: 100 * scaleRatio
|
||||
Layout.bottomMargin: 20 * scaleRatio
|
||||
Layout.minimumWidth: 100
|
||||
Layout.bottomMargin: 20
|
||||
|
||||
daemonAddrLabelText: qsTr("Bootstrap Address")
|
||||
daemonPortLabelText: qsTr("Bootstrap Port")
|
||||
|
||||
Reference in New Issue
Block a user