font.bold for amount/address/paymentid on the transfer page

This commit is contained in:
Sander Ferdinand 2018-03-24 21:06:12 +01:00 committed by moneromooo-monero
parent c001e31241
commit 06bda869e0
3 changed files with 7 additions and 1 deletions

View file

@ -38,11 +38,12 @@ TextArea {
property bool addressValidation: false property bool addressValidation: false
property bool wrapAnywhere: true property bool wrapAnywhere: true
property int fontSize: 18 * scaleRatio property int fontSize: 18 * scaleRatio
property bool fontBold: false
id: textArea id: textArea
font.family: Style.fontRegular.name font.family: Style.fontRegular.name
font.pixelSize: fontSize font.pixelSize: fontSize
font.bold: false font.bold: fontBold
horizontalAlignment: TextInput.AlignLeft horizontalAlignment: TextInput.AlignLeft
selectByMouse: true selectByMouse: true
color: Style.defaultFontColor color: Style.defaultFontColor

View file

@ -46,6 +46,7 @@ ColumnLayout {
property bool wrapAnywhere: true property bool wrapAnywhere: true
property bool showingHeader: true property bool showingHeader: true
property bool showBorder: true property bool showBorder: true
property bool fontBold: false
property int fontSize: 16 * scaleRatio property int fontSize: 16 * scaleRatio
signal labelButtonClicked(); signal labelButtonClicked();
@ -103,6 +104,7 @@ ColumnLayout {
bottomPadding: 10 * scaleRatio bottomPadding: 10 * scaleRatio
wrapAnywhere: parent.wrapAnywhere wrapAnywhere: parent.wrapAnywhere
fontSize: parent.fontSize fontSize: parent.fontSize
fontBold: parent.fontBold
Text { Text {
id: placeholderLabel id: placeholderLabel

View file

@ -189,6 +189,7 @@ Rectangle {
labelText: qsTr("Amount") + translationManager.emptyString labelText: qsTr("Amount") + translationManager.emptyString
placeholderText: qsTr("") + translationManager.emptyString placeholderText: qsTr("") + translationManager.emptyString
width: 100 width: 100
fontBold: true
inlineButtonText: qsTr("All") + translationManager.emptyString inlineButtonText: qsTr("All") + translationManager.emptyString
inlineButton.onClicked: amountLine.text = "(all)" inlineButton.onClicked: amountLine.text = "(all)"
@ -252,6 +253,7 @@ Rectangle {
LineEditMulti { LineEditMulti {
id: addressLine id: addressLine
spacing: 0 spacing: 0
fontBold: true
labelText: qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\ labelText: qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
Address <font size='2'> ( </font> <a href='#'>Address book</a><font size='2'> )</font>") Address <font size='2'> ( </font> <a href='#'>Address book</a><font size='2'> )</font>")
+ translationManager.emptyString + translationManager.emptyString
@ -308,6 +310,7 @@ Rectangle {
// payment id input // payment id input
LineEdit { LineEdit {
id: paymentIdLine id: paymentIdLine
fontBold: true
labelText: qsTr("Payment ID <font size='2'>( Optional )</font>") + translationManager.emptyString labelText: qsTr("Payment ID <font size='2'>( Optional )</font>") + translationManager.emptyString
placeholderText: qsTr("16 or 64 hexadecimal characters") + translationManager.emptyString placeholderText: qsTr("16 or 64 hexadecimal characters") + translationManager.emptyString
Layout.fillWidth: true Layout.fillWidth: true