fix: update profile popup qr code button to use StatusIconButton

This commit is contained in:
Jonathan Rainville 2021-01-12 11:48:03 -05:00
parent 5a108f9f41
commit 56f9b79834
1 changed files with 7 additions and 28 deletions

View File

@ -84,38 +84,17 @@ ModalPopup {
color: Style.current.secondaryText color: Style.current.secondaryText
} }
Rectangle { StatusIconButton {
id: qrCodeButton id: reloadBtn
height: 32 icon.name: "qr-code-icon"
width: 32
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: -4 anchors.topMargin: -4
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 32 + Style.current.smallPadding anchors.rightMargin: 32 + Style.current.smallPadding
radius: 8 iconColor: Style.current.textColor
onClicked: qrCodePopup.open()
SVGImage { width: 32
source: "../../../img/qr-code-icon.svg" height: 32
width: 25
height: 25
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
hoverEnabled: true
onExited: {
qrCodeButton.color = Style.current.white
}
onEntered: {
qrCodeButton.color = Style.current.grey
}
onClicked: {
qrCodePopup.open()
}
}
} }
ModalPopup { ModalPopup {