mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-13 05:17:28 -04:00
Remove scaleRatio
This commit is contained in:
@@ -107,20 +107,20 @@ Item {
|
||||
z: inactiveOverlay.z + 1
|
||||
id: mainLayout
|
||||
spacing: 10
|
||||
anchors { fill: parent; margins: 35 * scaleRatio }
|
||||
anchors { fill: parent; margins: 35 }
|
||||
|
||||
ColumnLayout {
|
||||
id: column
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.maximumWidth: 400 * scaleRatio
|
||||
Layout.maximumWidth: 400
|
||||
|
||||
Label {
|
||||
text: (root.walletName.length > 0 ? qsTr("Please enter wallet device passphrase for: ") + root.walletName : qsTr("Please enter wallet device passphrase")) + translationManager.emptyString
|
||||
Layout.fillWidth: true
|
||||
|
||||
font.pixelSize: 16 * scaleRatio
|
||||
font.pixelSize: 16
|
||||
font.family: MoneroComponents.Style.fontLight.name
|
||||
|
||||
color: MoneroComponents.Style.defaultFontColor
|
||||
@@ -131,7 +131,7 @@ Item {
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
font.pixelSize: 14 * scaleRatio
|
||||
font.pixelSize: 14
|
||||
font.family: MoneroComponents.Style.fontLight.name
|
||||
|
||||
color: MoneroComponents.Style.warningColor
|
||||
@@ -142,7 +142,7 @@ Item {
|
||||
visible: root.errorText
|
||||
|
||||
color: MoneroComponents.Style.errorColor
|
||||
font.pixelSize: 16 * scaleRatio
|
||||
font.pixelSize: 16
|
||||
font.family: MoneroComponents.Style.fontLight.name
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.Wrap
|
||||
@@ -155,7 +155,7 @@ Item {
|
||||
horizontalAlignment: TextInput.AlignLeft
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
font.family: MoneroComponents.Style.fontLight.name
|
||||
font.pixelSize: 24 * scaleRatio
|
||||
font.pixelSize: 24
|
||||
echoMode: TextInput.Password
|
||||
bottomPadding: 10
|
||||
leftPadding: 10
|
||||
@@ -172,8 +172,8 @@ Item {
|
||||
color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF"
|
||||
|
||||
Image {
|
||||
width: 26 * scaleRatio
|
||||
height: 26 * scaleRatio
|
||||
width: 26
|
||||
height: 26
|
||||
opacity: 0.7
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png"
|
||||
@@ -189,13 +189,13 @@ Item {
|
||||
}
|
||||
onEntered: {
|
||||
parent.opacity = 0.9
|
||||
parent.width = 28 * scaleRatio
|
||||
parent.height = 28 * scaleRatio
|
||||
parent.width = 28
|
||||
parent.height = 28
|
||||
}
|
||||
onExited: {
|
||||
parent.opacity = 0.7
|
||||
parent.width = 26 * scaleRatio
|
||||
parent.height = 26 * scaleRatio
|
||||
parent.width = 26
|
||||
parent.height = 26
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -220,7 +220,7 @@ Item {
|
||||
text: qsTr("Please re-enter") + translationManager.emptyString
|
||||
Layout.fillWidth: true
|
||||
|
||||
font.pixelSize: 16 * scaleRatio
|
||||
font.pixelSize: 16
|
||||
font.family: MoneroComponents.Style.fontLight.name
|
||||
|
||||
color: MoneroComponents.Style.defaultFontColor
|
||||
@@ -233,7 +233,7 @@ Item {
|
||||
horizontalAlignment: TextInput.AlignLeft
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
font.family: MoneroComponents.Style.fontLight.name
|
||||
font.pixelSize: 24 * scaleRatio
|
||||
font.pixelSize: 24
|
||||
echoMode: TextInput.Password
|
||||
KeyNavigation.tab: okButton
|
||||
bottomPadding: 10
|
||||
@@ -250,8 +250,8 @@ Item {
|
||||
color: MoneroComponents.Style.blackTheme ? "black" : "#A9FFFFFF"
|
||||
|
||||
Image {
|
||||
width: 26 * scaleRatio
|
||||
height: 26 * scaleRatio
|
||||
width: 26
|
||||
height: 26
|
||||
opacity: 0.7
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: isHidden ? "qrc:///images/eyeShow.png" : "qrc:///images/eyeHide.png"
|
||||
@@ -267,13 +267,13 @@ Item {
|
||||
}
|
||||
onEntered: {
|
||||
parent.opacity = 0.9
|
||||
parent.width = 28 * scaleRatio
|
||||
parent.height = 28 * scaleRatio
|
||||
parent.width = 28
|
||||
parent.height = 28
|
||||
}
|
||||
onExited: {
|
||||
parent.opacity = 0.7
|
||||
parent.width = 26 * scaleRatio
|
||||
parent.height = 26 * scaleRatio
|
||||
parent.width = 26
|
||||
parent.height = 26
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -303,7 +303,7 @@ Item {
|
||||
// Ok/Cancel buttons
|
||||
RowLayout {
|
||||
id: buttons
|
||||
spacing: 16 * scaleRatio
|
||||
spacing: 16
|
||||
Layout.topMargin: 16
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
|
||||
Reference in New Issue
Block a user