forked from Public/monero-gui
Fixes the placeholder texts for inputboxes in the wallet recovery wizard
This commit is contained in:
committed by
moneromooo-monero
parent
0b7966f625
commit
d2d6e3ad66
@@ -32,9 +32,15 @@ import "." 1.0
|
||||
Item {
|
||||
id: item
|
||||
property alias text: input.text
|
||||
|
||||
property alias placeholderText: placeholderLabel.text
|
||||
property bool placeholderCenter: false
|
||||
property string placeholderFontFamily: Style.fontRegular.name
|
||||
property bool placeholderFontBold: false
|
||||
property int placeholderFontSize: 18 * scaleRatio
|
||||
property string placeholderColor: Style.defaultFontColor
|
||||
property real placeholderOpacity: 0.25
|
||||
|
||||
property alias validator: input.validator
|
||||
property alias readOnly : input.readOnly
|
||||
property alias cursorPosition: input.cursorPosition
|
||||
@@ -148,10 +154,11 @@ Item {
|
||||
else { return 10 * scaleRatio; }
|
||||
}
|
||||
|
||||
opacity: 0.25
|
||||
color: Style.defaultFontColor
|
||||
font.family: Style.fontRegular.name
|
||||
opacity: item.placeholderOpacity
|
||||
color: item.placeholderColor
|
||||
font.family: item.placeholderFontFamily
|
||||
font.pixelSize: placeholderFontSize * scaleRatio
|
||||
font.bold: item.placeholderFontBold
|
||||
text: ""
|
||||
z: 3
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ QtObject {
|
||||
property string inputBoxBackground: "black"
|
||||
property string inputBoxBackgroundError: "#FFDDDD"
|
||||
property string inputBoxColor: "white"
|
||||
property string legacy_placeholderFontColor: "#BABABA"
|
||||
|
||||
property string buttonBackgroundColor: "#FA6800"
|
||||
property string buttonBackgroundColorHover: "#E65E00"
|
||||
|
||||
Reference in New Issue
Block a user