From 38be2889cd6264e28689c4f7be0bf475ba5408d8 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 5 May 2021 12:46:25 -0400 Subject: [PATCH] use StatusIconButton component to avoid pixelized close button --- .../AppLayouts/Chat/ContactsColumn/EmptyView.qml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml b/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml index cef72380ba..c655c8cc27 100644 --- a/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml +++ b/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml @@ -43,21 +43,18 @@ Rectangle { height: 50 } - SVGImage { + StatusIconButton { + icon.name: "close" id: closeImg anchors.top: parent.top anchors.topMargin: 10 anchors.right: parent.right anchors.rightMargin: 10 - source: "../../../img/close.svg" - height: 20 - width: 20 - } - ColorOverlay { - anchors.fill: closeImg - source: closeImg - color: Style.current.darkGrey + icon.height: 20 + icon.width: 20 + iconColor: Style.current.darkGrey } + MouseArea { anchors.fill: closeImg cursorShape: Qt.PointingHandCursor