fix: fix QML warnings

This commit is contained in:
Jonathan Rainville 2020-12-29 13:18:50 -05:00 committed by Iuri Matias
parent f9b7d9dfc9
commit 37edfed446
2 changed files with 8 additions and 7 deletions

View File

@ -72,10 +72,11 @@ Item {
id: profileName
text: ensName !== "" ? ensName : username
anchors.left: profileImgContainer.right
anchors.leftMargin: 8
anchors.leftMargin: Style.current.halfPadding
anchors.top: profileImgContainer.top
font.weight: Font.Medium
font.pixelSize: 15
anchors.topMargin: 4
font.weight: Font.Bold
font.pixelSize: 20
}
Address {
@ -94,7 +95,7 @@ Item {
height: 32
width: 32
radius: 8
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenter: profileImgContainer.verticalCenter
icon.name: "qr-code-icon"
iconColor: Style.current.textColor
onClicked: {
@ -118,8 +119,9 @@ Item {
asynchronous: true
fillMode: Image.PreserveAspectFit
source: profileModel.qrCode(pubkey)
anchors.verticalCenterOffset: 20
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter + 20
anchors.verticalCenter: parent.verticalCenter
height: 312
width: 312
mipmap: true

View File

@ -640,8 +640,7 @@ Rectangle {
font.pixelSize: 15
font.family: Style.current.fontRegular.name
wrapMode: TextArea.Wrap
anchors.bottom: messageInput.bottom
anchors.top: messageInput.top
height: parent.height
placeholderText: qsTr("Type a message")
placeholderTextColor: Style.current.secondaryText
selectByMouse: true