Skip to content

Commit 84fbd2f

Browse files
committed
qml: Use CoreText background for PaymentRequest address
1 parent 2bb7e51 commit 84fbd2f

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/qml/pages/wallet/RequestPayment.qml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,18 @@ Page {
109109
color: enabled ? Theme.color.neutral7 : Theme.color.neutral4
110110
}
111111

112-
Rectangle {
112+
CoreText {
113+
id: address
113114
anchors.left: addressLabel.right
114115
anchors.right: parent.right
115116
anchors.top: parent.top
116-
anchors.bottom: parent.bottom
117-
color: Theme.color.neutral2
118-
radius: 5
119-
CoreText {
120-
id: address
121-
text: root.request.address
122-
anchors.fill: parent
123-
anchors.leftMargin: 5
124-
horizontalAlignment: Text.AlignLeft
125-
font.pixelSize: 18
126-
wrapMode: Text.WrapAnywhere
117+
text: root.request.address
118+
horizontalAlignment: Text.AlignLeft
119+
font.pixelSize: 18
120+
wrapMode: Text.WrapAnywhere
121+
background: Rectangle {
122+
color: Theme.color.neutral2
123+
radius: 5
127124
}
128125
}
129126
}

0 commit comments

Comments
 (0)