From 92320ffb1c6e5edeffe27d5bfeb8aada2135f448 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 25 Oct 2021 16:06:32 +0200 Subject: [PATCH] refactor(StatusChatCommandsPopup): use StatusQ StatusChatCommandButton --- ui/StatusQ | 2 +- ui/shared/status/StatusChatCommandsPopup.qml | 10 ++++------ ui/shared/status/qmldir | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ui/StatusQ b/ui/StatusQ index 64b2a51c09..cc48c0e89b 160000 --- a/ui/StatusQ +++ b/ui/StatusQ @@ -1 +1 @@ -Subproject commit 64b2a51c09aca1d66a88b38c449b0579c4222010 +Subproject commit cc48c0e89b7eaae84b91bea6b66bf09e8b61e03f diff --git a/ui/shared/status/StatusChatCommandsPopup.qml b/ui/shared/status/StatusChatCommandsPopup.qml index e36c49315b..ea65234032 100644 --- a/ui/shared/status/StatusChatCommandsPopup.qml +++ b/ui/shared/status/StatusChatCommandsPopup.qml @@ -3,7 +3,9 @@ import QtQuick.Controls 2.13 import QtGraphicalEffects 1.13 import utils 1.0 -import "../../shared" + +import StatusQ.Controls 0.1 + import "../../shared/popups" Popup { @@ -46,8 +48,6 @@ Popup { text: qsTrId("send-transaction") icon.color: Style.current.purple icon.name: "send" - icon.width: 16 - icon.height: 18 onClicked: appSettings.isWalletEnabled ? root.sendTransactionCommandButtonClicked() : confirmationPopup.open() } @@ -57,9 +57,7 @@ Popup { text: qsTrId("request-transaction") icon.color: Style.current.orange icon.name: "send" - icon.width: 16 - icon.height: 18 - iconRotation: 180 + icon.rotation: 180 onClicked: appSettings.isWalletEnabled ? root.receiveTransactionCommandButtonClicked() : confirmationPopup.open() } diff --git a/ui/shared/status/qmldir b/ui/shared/status/qmldir index 71d8836733..8c339366e8 100644 --- a/ui/shared/status/qmldir +++ b/ui/shared/status/qmldir @@ -1,4 +1,3 @@ -StatusChatCommandButton 1.0 StatusChatCommandButton.qml StatusChatCommandPopup 1.0 StatusChatCommandPopup.qml StatusChatInput 1.0 StatusChatInput.qml StatusCategoryButton 1.0 StatusCategoryButton.qml