mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-24 11:36:14 +00:00
Fixes the placeholder texts for inputboxes in the wallet recovery wizard
This commit is contained in:
parent
0b7966f625
commit
d2d6e3ad66
4 changed files with 29 additions and 4 deletions
|
@ -32,9 +32,15 @@ import "." 1.0
|
||||||
Item {
|
Item {
|
||||||
id: item
|
id: item
|
||||||
property alias text: input.text
|
property alias text: input.text
|
||||||
|
|
||||||
property alias placeholderText: placeholderLabel.text
|
property alias placeholderText: placeholderLabel.text
|
||||||
property bool placeholderCenter: false
|
property bool placeholderCenter: false
|
||||||
|
property string placeholderFontFamily: Style.fontRegular.name
|
||||||
|
property bool placeholderFontBold: false
|
||||||
property int placeholderFontSize: 18 * scaleRatio
|
property int placeholderFontSize: 18 * scaleRatio
|
||||||
|
property string placeholderColor: Style.defaultFontColor
|
||||||
|
property real placeholderOpacity: 0.25
|
||||||
|
|
||||||
property alias validator: input.validator
|
property alias validator: input.validator
|
||||||
property alias readOnly : input.readOnly
|
property alias readOnly : input.readOnly
|
||||||
property alias cursorPosition: input.cursorPosition
|
property alias cursorPosition: input.cursorPosition
|
||||||
|
@ -148,10 +154,11 @@ Item {
|
||||||
else { return 10 * scaleRatio; }
|
else { return 10 * scaleRatio; }
|
||||||
}
|
}
|
||||||
|
|
||||||
opacity: 0.25
|
opacity: item.placeholderOpacity
|
||||||
color: Style.defaultFontColor
|
color: item.placeholderColor
|
||||||
font.family: Style.fontRegular.name
|
font.family: item.placeholderFontFamily
|
||||||
font.pixelSize: placeholderFontSize * scaleRatio
|
font.pixelSize: placeholderFontSize * scaleRatio
|
||||||
|
font.bold: item.placeholderFontBold
|
||||||
text: ""
|
text: ""
|
||||||
z: 3
|
z: 3
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ QtObject {
|
||||||
property string inputBoxBackground: "black"
|
property string inputBoxBackground: "black"
|
||||||
property string inputBoxBackgroundError: "#FFDDDD"
|
property string inputBoxBackgroundError: "#FFDDDD"
|
||||||
property string inputBoxColor: "white"
|
property string inputBoxColor: "white"
|
||||||
|
property string legacy_placeholderFontColor: "#BABABA"
|
||||||
|
|
||||||
property string buttonBackgroundColor: "#FA6800"
|
property string buttonBackgroundColor: "#FA6800"
|
||||||
property string buttonBackgroundColorHover: "#E65E00"
|
property string buttonBackgroundColorHover: "#E65E00"
|
||||||
|
|
|
@ -236,7 +236,11 @@ ColumnLayout {
|
||||||
id: addressLine
|
id: addressLine
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
Layout.minimumWidth: 200 * scaleRatio
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
|
placeholderFontBold: true
|
||||||
|
placeholderFontFamily: "Arial"
|
||||||
|
placeholderColor: Style.legacy_placeholderFontColor
|
||||||
placeholderText: qsTr("Account address (public)") + translationManager.emptyString
|
placeholderText: qsTr("Account address (public)") + translationManager.emptyString
|
||||||
|
placeholderOpacity: 1.0
|
||||||
onTextUpdated: checkNextButton()
|
onTextUpdated: checkNextButton()
|
||||||
borderColor: Qt.rgba(0, 0, 0, 0.15)
|
borderColor: Qt.rgba(0, 0, 0, 0.15)
|
||||||
backgroundColor: "white"
|
backgroundColor: "white"
|
||||||
|
@ -248,7 +252,11 @@ ColumnLayout {
|
||||||
id: viewKeyLine
|
id: viewKeyLine
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
Layout.minimumWidth: 200 * scaleRatio
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
|
placeholderFontBold: true
|
||||||
|
placeholderFontFamily: "Arial"
|
||||||
|
placeholderColor: Style.legacy_placeholderFontColor
|
||||||
placeholderText: qsTr("View key (private)") + translationManager.emptyString
|
placeholderText: qsTr("View key (private)") + translationManager.emptyString
|
||||||
|
placeholderOpacity: 1.0
|
||||||
onTextUpdated: checkNextButton()
|
onTextUpdated: checkNextButton()
|
||||||
borderColor: Qt.rgba(0, 0, 0, 0.15)
|
borderColor: Qt.rgba(0, 0, 0, 0.15)
|
||||||
backgroundColor: "white"
|
backgroundColor: "white"
|
||||||
|
@ -261,7 +269,11 @@ ColumnLayout {
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
Layout.minimumWidth: 200 * scaleRatio
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
id: spendKeyLine
|
id: spendKeyLine
|
||||||
|
placeholderFontBold: true
|
||||||
|
placeholderFontFamily: "Arial"
|
||||||
|
placeholderColor: Style.legacy_placeholderFontColor
|
||||||
placeholderText: qsTr("Spend key (private)") + translationManager.emptyString
|
placeholderText: qsTr("Spend key (private)") + translationManager.emptyString
|
||||||
|
placeholderOpacity: 1.0
|
||||||
onTextUpdated: checkNextButton()
|
onTextUpdated: checkNextButton()
|
||||||
borderColor: Qt.rgba(0, 0, 0, 0.15)
|
borderColor: Qt.rgba(0, 0, 0, 0.15)
|
||||||
backgroundColor: "white"
|
backgroundColor: "white"
|
||||||
|
@ -277,7 +289,11 @@ ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: 600 * scaleRatio
|
Layout.maximumWidth: 600 * scaleRatio
|
||||||
Layout.minimumWidth: 200 * scaleRatio
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
|
placeholderFontBold: true
|
||||||
|
placeholderFontFamily: "Arial"
|
||||||
|
placeholderColor: Style.legacy_placeholderFontColor
|
||||||
placeholderText: qsTr("Restore height (optional)") + translationManager.emptyString
|
placeholderText: qsTr("Restore height (optional)") + translationManager.emptyString
|
||||||
|
placeholderOpacity: 1.0
|
||||||
validator: IntValidator {
|
validator: IntValidator {
|
||||||
bottom:0
|
bottom:0
|
||||||
}
|
}
|
||||||
|
@ -294,7 +310,7 @@ ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 20 * scaleRatio
|
Layout.topMargin: 20 * scaleRatio
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
fontFamily: "Ariel"
|
fontFamily: "Arial"
|
||||||
fontColor: "#555555"
|
fontColor: "#555555"
|
||||||
text: qsTr("Your wallet is stored in") + ": " + fileUrlInput.text;
|
text: qsTr("Your wallet is stored in") + ": " + fileUrlInput.text;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ Column {
|
||||||
font.pixelSize: 16 * scaleRatio
|
font.pixelSize: 16 * scaleRatio
|
||||||
anchors.margins: 8 * scaleRatio
|
anchors.margins: 8 * scaleRatio
|
||||||
font.bold:true
|
font.bold:true
|
||||||
|
font.family: "Arial"
|
||||||
text: qsTr("Enter your 25 (or 24) word mnemonic seed") + translationManager.emptyString
|
text: qsTr("Enter your 25 (or 24) word mnemonic seed") + translationManager.emptyString
|
||||||
color: "#BABABA"
|
color: "#BABABA"
|
||||||
visible: !memoTextInput.text/* && !parent.focus*/
|
visible: !memoTextInput.text/* && !parent.focus*/
|
||||||
|
|
Loading…
Reference in a new issue