fix: update profile popup qr code button to use StatusIconButton
This commit is contained in:
parent
5a108f9f41
commit
56f9b79834
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue