refactor(@desktop/wallet): replace legacy StatusButton with StatusQ StatusButton

This commit is contained in:
Pascal Precht 2021-10-20 12:21:23 +02:00 committed by Iuri Matias
parent 44e43350f1
commit 6db7b5be44
12 changed files with 37 additions and 28 deletions

View File

@ -4,9 +4,10 @@ import QtGraphicalEffects 1.13
import QtQml.Models 2.13
import utils 1.0
import "../../../../shared"
import StatusQ.Controls 0.1
import "../../../../shared/panels"
import "../../../../shared/status"
ScrollView {
id: collectiblesContent

View File

@ -4,13 +4,15 @@ import QtQuick.Layouts 1.13
import QtQuick.Dialogs 1.3
import utils 1.0
import "../../../../shared"
import "../../../../shared/controls"
import "../../../../shared/popups"
import "../../../../shared/panels"
import "../../../../shared/status"
import "../stores"
import StatusQ.Controls 0.1
// TODO: replace with StatusModal
ModalPopup {
id: popup
@ -123,11 +125,7 @@ ModalPopup {
anchors.rightMargin: Style.current.padding
//% "Delete account"
text: qsTrId("delete-account")
bgColor: "transparent"
showBorder: true
borderColor: Style.current.border
hoveredBorderColor: Style.current.transparent
type: "warn"
type: StatusBaseButton.Type.Danger
MessageDialog {
id: deleteError

View File

@ -4,7 +4,8 @@ import QtQuick.Dialogs 1.3
import utils 1.0
import "../../../../shared"
import StatusQ.Controls 0.1 as StatusQControls
import "../../../../shared/controls"
import "../../../../shared/popups"
import "../../../../shared/panels"
@ -110,7 +111,7 @@ ModalPopup {
anchors.right: parent.right
}
footer: StatusButton {
footer: StatusQControls.StatusButton {
anchors.top: parent.top
anchors.right: parent.right
text: loading ?

View File

@ -4,6 +4,8 @@ import QtQuick.Dialogs 1.3
import utils 1.0
import StatusQ.Controls 0.1 as StatusQControls
import "../../../../shared"
import "../../../../shared/controls"
import "../../../../shared/popups"
@ -110,7 +112,7 @@ ModalPopup {
anchors.right: parent.right
}
footer: StatusButton {
footer: StatusQControls.StatusButton {
anchors.top: parent.top
anchors.right: parent.right
text: loading ?

View File

@ -4,10 +4,10 @@ import QtQuick.Layouts 1.13
import utils 1.0
import "../../../../shared"
import StatusQ.Controls 0.1
import "../../../../shared/controls"
import "../../../../shared/popups"
import "../../../../shared/status"
import "../stores"
// TODO: replace with StatusModal

View File

@ -4,6 +4,8 @@ import QtQuick.Dialogs 1.3
import utils 1.0
import StatusQ.Controls 0.1 as StatusQControls
import "../../../../shared"
import "../../../../shared/controls"
import "../../../../shared/popups"
@ -82,7 +84,7 @@ ModalPopup {
anchors.right: parent.right
}
footer: StatusButton {
footer: StatusQControls.StatusButton {
anchors.top: parent.top
anchors.right: parent.right
text: loading ?

View File

@ -2,9 +2,10 @@ import QtQuick 2.13
import QtGraphicalEffects 1.13
import utils 1.0
import "../../../../shared"
import StatusQ.Controls 0.1
import "../../../../shared/popups"
import "../../../../shared/status"
import "../panels"
// TODO: Replace with StatusModal

View File

@ -4,6 +4,8 @@ import QtQuick.Dialogs 1.3
import utils 1.0
import StatusQ.Controls 0.1 as StatusQControls
import "../../../../shared"
import "../../../../shared/controls"
import "../../../../shared/popups"
@ -82,7 +84,7 @@ ModalPopup {
width: parent.width
}
footer: StatusButton {
footer: StatusQControls.StatusButton {
anchors.top: parent.top
anchors.right: parent.right
text: loading ?

View File

@ -2,8 +2,9 @@ import QtQuick 2.13
import QtQuick.Controls 2.13
import utils 1.0
import "../../../../shared"
import "../../../../shared/status"
import StatusQ.Controls 0.1
import "../../../../shared/popups"
import "../panels"
import "../stores"

View File

@ -3,10 +3,11 @@ import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import utils 1.0
import "../../../../shared"
import StatusQ.Controls 0.1
import "../../../../shared/popups"
import "../../../../shared/panels"
import "../../../../shared/status"
import "../stores"
// TODO: replace with StatusModal
@ -91,12 +92,11 @@ ModalPopup {
width: parent.width
height: btnRemindLater.height
StatusButton {
StatusFlatButton {
anchors.right: btnRemindLater.left
anchors.rightMargin: Style.current.padding
//% "Ok, got it"
text: qsTrId("ens-got-it")
type: "secondary"
onClicked: {
acceptClicked()
close()

View File

@ -2,8 +2,9 @@ import QtQuick 2.13
import QtQuick.Controls 2.13
import utils 1.0
import "../../../../shared"
import "../../../../shared/status"
import StatusQ.Controls 0.1
import "../../../../shared/popups"
import "../panels"
import "../stores"

View File

@ -4,10 +4,10 @@ import QtQuick.Layouts 1.3
import utils 1.0
import "../../../../shared"
import StatusQ.Components 0.1
import StatusQ.Controls 0.1
import "../../../../shared/panels"
import "../../../../shared/status/core"
import "../../../../shared/status"
import "../popups"
import "../stores"
import "../controls"