refactor(StatusChatCommandsPopup): use StatusQ StatusChatCommandButton

This commit is contained in:
Pascal Precht 2021-10-25 16:06:32 +02:00 committed by Iuri Matias
parent 72b46c3b94
commit 92320ffb1c
3 changed files with 5 additions and 8 deletions

@ -1 +1 @@
Subproject commit 64b2a51c09aca1d66a88b38c449b0579c4222010 Subproject commit cc48c0e89b7eaae84b91bea6b66bf09e8b61e03f

View File

@ -3,7 +3,9 @@ import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13 import QtGraphicalEffects 1.13
import utils 1.0 import utils 1.0
import "../../shared"
import StatusQ.Controls 0.1
import "../../shared/popups" import "../../shared/popups"
Popup { Popup {
@ -46,8 +48,6 @@ Popup {
text: qsTrId("send-transaction") text: qsTrId("send-transaction")
icon.color: Style.current.purple icon.color: Style.current.purple
icon.name: "send" icon.name: "send"
icon.width: 16
icon.height: 18
onClicked: appSettings.isWalletEnabled ? root.sendTransactionCommandButtonClicked() : confirmationPopup.open() onClicked: appSettings.isWalletEnabled ? root.sendTransactionCommandButtonClicked() : confirmationPopup.open()
} }
@ -57,9 +57,7 @@ Popup {
text: qsTrId("request-transaction") text: qsTrId("request-transaction")
icon.color: Style.current.orange icon.color: Style.current.orange
icon.name: "send" icon.name: "send"
icon.width: 16 icon.rotation: 180
icon.height: 18
iconRotation: 180
onClicked: appSettings.isWalletEnabled ? root.receiveTransactionCommandButtonClicked() : confirmationPopup.open() onClicked: appSettings.isWalletEnabled ? root.receiveTransactionCommandButtonClicked() : confirmationPopup.open()
} }

View File

@ -1,4 +1,3 @@
StatusChatCommandButton 1.0 StatusChatCommandButton.qml
StatusChatCommandPopup 1.0 StatusChatCommandPopup.qml StatusChatCommandPopup 1.0 StatusChatCommandPopup.qml
StatusChatInput 1.0 StatusChatInput.qml StatusChatInput 1.0 StatusChatInput.qml
StatusCategoryButton 1.0 StatusCategoryButton.qml StatusCategoryButton 1.0 StatusCategoryButton.qml