2023-08-03 08:19:36 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
2021-10-05 20:50:22 +00:00
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import QtGraphicalEffects 1.13
|
2023-06-02 07:40:58 +00:00
|
|
|
import SortFilterProxyModel 0.2
|
2021-10-05 20:50:22 +00:00
|
|
|
|
2022-07-14 11:03:36 +00:00
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
2023-01-05 12:50:55 +00:00
|
|
|
import StatusQ.Popups 0.1
|
2022-07-14 11:03:36 +00:00
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.controls 1.0
|
2023-03-30 12:55:07 +00:00
|
|
|
import shared.popups 1.0
|
2022-10-27 09:26:34 +00:00
|
|
|
import shared.popups.keycard 1.0
|
2023-06-27 07:13:55 +00:00
|
|
|
import shared.popups.addaccount 1.0
|
2023-03-15 09:17:25 +00:00
|
|
|
import shared.stores 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
|
2024-09-13 12:19:26 +00:00
|
|
|
import AppLayouts.Wallet 1.0
|
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
import "../controls"
|
|
|
|
import "../popups"
|
|
|
|
import "../stores"
|
|
|
|
|
2022-02-09 09:43:23 +00:00
|
|
|
Rectangle {
|
2022-07-18 10:39:31 +00:00
|
|
|
id: root
|
2023-04-13 10:27:56 +00:00
|
|
|
objectName: "walletLeftTab"
|
2021-10-05 20:50:22 +00:00
|
|
|
|
2024-05-22 08:13:39 +00:00
|
|
|
property NetworkConnectionStore networkConnectionStore
|
2023-05-12 07:11:44 +00:00
|
|
|
property var selectAllAccounts: function(){}
|
2021-10-05 20:50:22 +00:00
|
|
|
property var changeSelectedAccount: function(){}
|
2023-12-26 10:19:41 +00:00
|
|
|
property var selectSavedAddresses: function(){}
|
2022-03-10 17:01:17 +00:00
|
|
|
property var emojiPopup: null
|
2021-10-05 20:50:22 +00:00
|
|
|
|
|
|
|
color: Style.current.secondaryMenuBackground
|
|
|
|
|
2023-08-04 08:41:45 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
d.loaded = true
|
|
|
|
}
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: d
|
|
|
|
property bool loaded: false
|
|
|
|
}
|
|
|
|
|
2023-03-22 15:48:44 +00:00
|
|
|
Loader {
|
|
|
|
id: addAccount
|
|
|
|
active: false
|
|
|
|
asynchronous: true
|
|
|
|
|
|
|
|
sourceComponent: AddAccountPopup {
|
2023-03-28 13:47:54 +00:00
|
|
|
store.emojiPopup: root.emojiPopup
|
|
|
|
store.addAccountModule: walletSection.addAccountModule
|
2023-03-22 15:48:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
onLoaded: {
|
|
|
|
addAccount.item.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-27 12:49:32 +00:00
|
|
|
Loader {
|
2023-07-19 14:05:21 +00:00
|
|
|
id: walletAccountContextMenu
|
|
|
|
active: false
|
2023-03-27 12:49:32 +00:00
|
|
|
sourceComponent: AccountContextMenu {
|
2024-09-13 12:19:26 +00:00
|
|
|
property var account: null
|
|
|
|
address: {
|
|
|
|
if (!account)
|
|
|
|
return ""
|
|
|
|
let address = account.address
|
|
|
|
const preferredChains = account.preferredSharingChainIds
|
|
|
|
if (!!preferredChains) {
|
|
|
|
const shortNames = WalletUtils.getNetworkShortNames(preferredChains, root.networkConnectionStore.filteredflatNetworks)
|
|
|
|
address = `${shortNames}${address}`
|
|
|
|
}
|
|
|
|
return address
|
|
|
|
}
|
|
|
|
name: account ? account.name : ""
|
|
|
|
walletType: account ? account.walletType : ""
|
|
|
|
canDelete: account && !account.isWallet
|
|
|
|
hideFromTotalBalance: account && account.hideFromTotalBalance
|
|
|
|
canAddWatchOnlyAccount: !production
|
2023-04-13 10:27:56 +00:00
|
|
|
|
|
|
|
onClosed: {
|
2023-07-19 14:05:21 +00:00
|
|
|
walletAccountContextMenu.active = false
|
2023-04-13 10:27:56 +00:00
|
|
|
}
|
|
|
|
|
2023-03-27 12:49:32 +00:00
|
|
|
onAddNewAccountClicked: {
|
|
|
|
RootStore.runAddAccountPopup()
|
|
|
|
}
|
|
|
|
|
|
|
|
onAddWatchOnlyAccountClicked: {
|
|
|
|
RootStore.runAddWatchOnlyAccountPopup()
|
|
|
|
}
|
2023-07-19 14:05:21 +00:00
|
|
|
|
|
|
|
onEditAccountClicked: {
|
|
|
|
if (!account)
|
|
|
|
return
|
|
|
|
RootStore.runEditAccountPopup(account.address)
|
|
|
|
}
|
|
|
|
|
|
|
|
onDeleteAccountClicked: {
|
|
|
|
if (!account)
|
|
|
|
return
|
2023-12-11 12:58:15 +00:00
|
|
|
removeAccountConfirmation.accountType = account.walletType
|
2023-07-19 14:05:21 +00:00
|
|
|
removeAccountConfirmation.accountName = account.name
|
|
|
|
removeAccountConfirmation.accountAddress = account.address
|
|
|
|
removeAccountConfirmation.accountDerivationPath = account.path
|
2023-12-11 12:58:15 +00:00
|
|
|
removeAccountConfirmation.preferredSharingChainIds = account.preferredSharingChainIds
|
|
|
|
removeAccountConfirmation.emoji = account.emoji
|
|
|
|
removeAccountConfirmation.colorId = account.colorId
|
2023-07-19 14:05:21 +00:00
|
|
|
removeAccountConfirmation.active = true
|
|
|
|
}
|
2023-10-10 15:46:43 +00:00
|
|
|
|
2024-09-13 12:19:26 +00:00
|
|
|
onHideFromTotalBalanceClicked: {
|
|
|
|
if (!account)
|
|
|
|
return
|
|
|
|
RootStore.updateWatchAccountHiddenFromTotalBalance(account.address, hideFromTotalBalance)
|
|
|
|
}
|
2023-03-27 12:49:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-30 12:55:07 +00:00
|
|
|
Loader {
|
|
|
|
id: removeAccountConfirmation
|
|
|
|
active: false
|
|
|
|
|
2023-12-11 12:58:15 +00:00
|
|
|
property string accountType
|
2023-03-30 12:55:07 +00:00
|
|
|
property string accountKeyUid
|
|
|
|
property string accountName
|
|
|
|
property string accountAddress
|
|
|
|
property string accountDerivationPath
|
2023-12-11 12:58:15 +00:00
|
|
|
property string preferredSharingChainIds
|
|
|
|
property string emoji
|
|
|
|
property string colorId
|
2023-03-30 12:55:07 +00:00
|
|
|
|
|
|
|
sourceComponent: RemoveAccountConfirmationPopup {
|
2023-12-11 12:58:15 +00:00
|
|
|
accountType: removeAccountConfirmation.accountType
|
2023-03-30 12:55:07 +00:00
|
|
|
accountName: removeAccountConfirmation.accountName
|
|
|
|
accountAddress: removeAccountConfirmation.accountAddress
|
|
|
|
accountDerivationPath: removeAccountConfirmation.accountDerivationPath
|
2023-12-11 12:58:15 +00:00
|
|
|
preferredSharingNetworkShortNames: RootStore.getNetworkShortNames(removeAccountConfirmation.preferredSharingChainIds)
|
|
|
|
emoji: removeAccountConfirmation.emoji
|
|
|
|
color: Utils.getColorForId(removeAccountConfirmation.colorId)
|
2023-03-30 12:55:07 +00:00
|
|
|
|
|
|
|
onClosed: {
|
|
|
|
removeAccountConfirmation.active = false
|
|
|
|
}
|
|
|
|
|
|
|
|
onRemoveAccount: {
|
|
|
|
close()
|
2023-05-04 14:34:00 +00:00
|
|
|
RootStore.deleteAccount(address)
|
2023-03-30 12:55:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
onLoaded: {
|
|
|
|
removeAccountConfirmation.item.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-22 15:48:44 +00:00
|
|
|
Connections {
|
|
|
|
target: walletSection
|
|
|
|
|
|
|
|
function onDisplayAddAccountPopup() {
|
|
|
|
addAccount.active = true
|
|
|
|
}
|
|
|
|
function onDestroyAddAccountPopup() {
|
|
|
|
addAccount.active = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-27 12:49:32 +00:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
acceptedButtons: Qt.RightButton
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
if (mouse.button === Qt.RightButton) {
|
2023-07-19 14:05:21 +00:00
|
|
|
walletAccountContextMenu.active = true
|
|
|
|
walletAccountContextMenu.item.popup(mouse.x, mouse.y)
|
2023-03-27 12:49:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-18 10:39:31 +00:00
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
2023-08-03 08:19:36 +00:00
|
|
|
spacing: 0
|
2021-10-05 20:50:22 +00:00
|
|
|
|
2023-01-05 12:50:55 +00:00
|
|
|
Item {
|
2022-07-18 10:39:31 +00:00
|
|
|
Layout.fillWidth: true
|
2023-08-10 10:28:42 +00:00
|
|
|
Layout.preferredHeight: icon.height
|
2023-01-05 12:50:55 +00:00
|
|
|
Layout.leftMargin: Style.current.padding
|
|
|
|
Layout.rightMargin: Style.current.padding
|
|
|
|
Layout.topMargin: Style.current.padding
|
|
|
|
|
2023-03-27 12:49:32 +00:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
acceptedButtons: Qt.RightButton
|
2023-08-03 08:19:36 +00:00
|
|
|
onClicked: mouse.accepted = true
|
2023-03-27 12:49:32 +00:00
|
|
|
}
|
|
|
|
|
2023-01-05 12:50:55 +00:00
|
|
|
StatusBaseText {
|
|
|
|
id: walletTitleText
|
|
|
|
text: qsTr("Wallet")
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 17
|
|
|
|
color: Theme.palette.directColor1
|
2023-08-10 10:28:42 +00:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2023-01-05 12:50:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusRoundButton {
|
2023-08-10 10:28:42 +00:00
|
|
|
id: icon
|
2023-01-05 12:50:55 +00:00
|
|
|
objectName: "addAccountButton"
|
|
|
|
icon.name: "add-circle"
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: -Style.current.smallPadding
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2023-08-10 10:28:42 +00:00
|
|
|
icon.width: 24
|
|
|
|
icon.height: 24
|
2023-01-05 12:50:55 +00:00
|
|
|
color: hovered || highlighted ? Theme.palette.primaryColor3
|
|
|
|
: "transparent"
|
2023-03-22 15:48:44 +00:00
|
|
|
onClicked: RootStore.runAddAccountPopup()
|
2023-01-05 12:50:55 +00:00
|
|
|
}
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
Rectangle {
|
2022-07-18 10:39:31 +00:00
|
|
|
Layout.fillWidth: true
|
2023-08-03 08:19:36 +00:00
|
|
|
Layout.minimumHeight: Style.current.bigPadding
|
|
|
|
color: root.color
|
|
|
|
z: 2
|
|
|
|
|
|
|
|
layer.enabled: !walletAccountsListView.atYBeginning
|
|
|
|
layer.effect: DropShadow {
|
|
|
|
verticalOffset: 10
|
|
|
|
radius: 20
|
|
|
|
samples: 41
|
|
|
|
fast: true
|
|
|
|
cached: true
|
|
|
|
color: Theme.palette.dropShadow2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
2022-07-19 15:36:09 +00:00
|
|
|
Layout.fillHeight: true
|
2023-08-03 08:19:36 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
StatusListView {
|
|
|
|
id: walletAccountsListView
|
|
|
|
objectName: "walletAccountsListView"
|
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
left: parent.left
|
|
|
|
right: parent.right
|
2023-07-21 10:55:36 +00:00
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
height: parent.height - footer.height
|
|
|
|
|
|
|
|
spacing: Style.current.smallPadding
|
|
|
|
currentIndex: -1
|
|
|
|
highlightRangeMode: ListView.ApplyRange
|
|
|
|
preferredHighlightBegin: 0
|
|
|
|
preferredHighlightEnd: height
|
|
|
|
bottomMargin: Style.current.padding
|
|
|
|
|
|
|
|
readonly property Item firstItem: count > 0 ? itemAtIndex(0) : null
|
2023-08-04 08:41:45 +00:00
|
|
|
readonly property bool footerOverlayed: d.loaded && contentHeight > availableHeight
|
2023-08-03 08:19:36 +00:00
|
|
|
|
|
|
|
delegate: StatusListItem {
|
|
|
|
objectName: "walletAccount-" + model.name
|
|
|
|
readonly property bool itemLoaded: !model.assetsLoading // needed for e2e tests
|
|
|
|
width: ListView.view.width - Style.current.padding * 2
|
2023-12-26 10:19:41 +00:00
|
|
|
highlighted: RootStore.selectedAddress.toLowerCase() === model.address.toLowerCase()
|
2023-08-03 08:19:36 +00:00
|
|
|
onHighlightedChanged: {
|
|
|
|
if (highlighted)
|
|
|
|
ListView.view.currentIndex = index
|
2023-03-27 12:49:32 +00:00
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
anchors.horizontalCenter: !!parent ? parent.horizontalCenter : undefined
|
|
|
|
title: model.name
|
2023-10-10 15:46:43 +00:00
|
|
|
subTitle: !model.hideFromTotalBalance ? LocaleUtils.currencyAmountToLocaleString(model.currencyBalance): ""
|
2023-08-03 08:19:36 +00:00
|
|
|
asset.emoji: !!model.emoji ? model.emoji: ""
|
|
|
|
asset.color: Utils.getColorForId(model.colorId)
|
|
|
|
asset.name: !model.emoji ? "filled-account": ""
|
|
|
|
asset.width: 40
|
|
|
|
asset.height: 40
|
|
|
|
asset.letterSize: 14
|
|
|
|
asset.isLetterIdenticon: !!model.emoji ? true : false
|
|
|
|
asset.bgColor: Theme.palette.primaryColor3
|
|
|
|
statusListItemTitle.font.weight: Font.Medium
|
|
|
|
color: sensor.containsMouse || highlighted ? Theme.palette.baseColor3 : "transparent"
|
|
|
|
statusListItemSubTitle.loading: !!model.assetsLoading
|
|
|
|
errorMode: networkConnectionStore.accountBalanceNotAvailable
|
|
|
|
errorIcon.tooltip.maxWidth: 300
|
|
|
|
errorIcon.tooltip.text: networkConnectionStore.accountBalanceNotAvailableText
|
|
|
|
onClicked: {
|
|
|
|
if (mouse.button === Qt.RightButton) {
|
|
|
|
walletAccountContextMenu.active = true
|
|
|
|
walletAccountContextMenu.item.account = model
|
|
|
|
walletAccountContextMenu.item.popup(this, mouse.x, mouse.y)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
changeSelectedAccount(model.address)
|
2023-01-05 12:50:55 +00:00
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
components: [
|
|
|
|
StatusIcon {
|
|
|
|
width: !!icon ? 15: 0
|
|
|
|
height: !!icon ? 15: 0
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
icon: model.walletType === Constants.watchWalletType ? "show" : ""
|
|
|
|
},
|
|
|
|
StatusIcon {
|
|
|
|
width: !!icon ? 15: 0
|
|
|
|
height: !!icon ? 15: 0
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
icon: model.keycardAccount ? "keycard" : ""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-05-12 07:11:44 +00:00
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
header: Button {
|
|
|
|
id: header
|
|
|
|
verticalPadding: Style.current.padding
|
|
|
|
horizontalPadding: Style.current.padding
|
2023-12-26 10:19:41 +00:00
|
|
|
highlighted: RootStore.showAllAccounts
|
2023-08-03 08:19:36 +00:00
|
|
|
objectName: "allAccountsBtn"
|
|
|
|
|
|
|
|
leftInset: Style.current.padding
|
|
|
|
bottomInset: Style.current.padding
|
2023-11-17 13:23:46 +00:00
|
|
|
leftPadding: Style.current.xlPadding
|
|
|
|
bottomPadding: Style.current.bigPadding
|
2023-08-03 08:19:36 +00:00
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
MouseArea {
|
|
|
|
id: mouseArea
|
|
|
|
anchors.fill: parent
|
|
|
|
acceptedButtons: Qt.LeftButton
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
onClicked: root.selectAllAccounts()
|
|
|
|
hoverEnabled: true
|
2023-05-12 07:11:44 +00:00
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
radius: Style.current.radius
|
|
|
|
color: header.highlighted || mouseArea.containsMouse ? Style.current.backgroundHover : root.color
|
|
|
|
implicitWidth: parent.ListView.view.width - Style.current.padding * 2
|
2023-05-12 07:11:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-17 13:23:46 +00:00
|
|
|
contentItem: ColumnLayout {
|
|
|
|
spacing: 0
|
2023-08-03 08:19:36 +00:00
|
|
|
StatusBaseText {
|
|
|
|
id: allAccounts
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
text: qsTr("All accounts")
|
|
|
|
font.weight: Font.Medium
|
|
|
|
font.pixelSize: 15
|
2023-11-17 13:23:46 +00:00
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
lineHeight: 22
|
2023-08-03 08:19:36 +00:00
|
|
|
}
|
2023-11-17 13:23:46 +00:00
|
|
|
RowLayout {
|
|
|
|
spacing: 4
|
|
|
|
StatusTextWithLoadingState {
|
|
|
|
id: walletAmountValue
|
|
|
|
objectName: "walletLeftListAmountValue"
|
|
|
|
customColor: Style.current.textColor
|
|
|
|
text: LocaleUtils.currencyAmountToLocaleString(RootStore.totalCurrencyBalance, {noSymbol: true})
|
|
|
|
font.pixelSize: 22
|
2023-11-24 12:16:13 +00:00
|
|
|
loading: RootStore.balanceLoading
|
2023-11-17 13:23:46 +00:00
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
lineHeight: 36
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
}
|
|
|
|
StatusTextWithLoadingState {
|
|
|
|
customColor: Style.current.textColor
|
|
|
|
text: RootStore.totalCurrencyBalance.symbol
|
|
|
|
font.pixelSize: 13
|
2023-11-24 12:16:13 +00:00
|
|
|
loading: RootStore.balanceLoading
|
2023-11-17 13:23:46 +00:00
|
|
|
font.weight: Font.Medium
|
|
|
|
lineHeightMode: Text.FixedHeight
|
|
|
|
lineHeight: 22
|
|
|
|
verticalAlignment: Text.AlignBottom
|
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
visible: !networkConnectionStore.accountBalanceNotAvailable
|
|
|
|
}
|
|
|
|
StatusFlatRoundButton {
|
|
|
|
id: errorIcon
|
2023-11-17 13:23:46 +00:00
|
|
|
Layout.preferredWidth: 14
|
|
|
|
Layout.preferredHeight: 14
|
2023-08-03 08:19:36 +00:00
|
|
|
icon.width: 14
|
|
|
|
icon.height: 14
|
|
|
|
icon.name: "tiny/warning"
|
|
|
|
icon.color: Theme.palette.dangerColor1
|
|
|
|
tooltip.text: networkConnectionStore.accountBalanceNotAvailableText
|
|
|
|
tooltip.maxWidth: 200
|
|
|
|
visible: networkConnectionStore.accountBalanceNotAvailable
|
|
|
|
}
|
2023-05-12 07:11:44 +00:00
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
}
|
2023-05-12 07:11:44 +00:00
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
model: SortFilterProxyModel {
|
|
|
|
sourceModel: RootStore.accounts
|
|
|
|
sorters: RoleSorter { roleName: "position"; sortOrder: Qt.AscendingOrder }
|
2023-05-12 07:11:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
Control {
|
2023-01-05 12:50:55 +00:00
|
|
|
id: footer
|
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
// Bottom Margin is not applied to ListView if it's fully visible
|
|
|
|
topMargin: Math.min(walletAccountsListView.contentHeight, parent.height - height) + (walletAccountsListView.footerOverlayed ? 0 : walletAccountsListView.bottomMargin)
|
|
|
|
left: parent.left
|
|
|
|
right: parent.right
|
|
|
|
}
|
|
|
|
|
2023-01-05 12:50:55 +00:00
|
|
|
horizontalPadding: Style.current.padding
|
|
|
|
verticalPadding: Style.current.padding
|
|
|
|
|
|
|
|
background: Rectangle {
|
2023-08-03 08:19:36 +00:00
|
|
|
id: footerBackground
|
2023-01-05 12:50:55 +00:00
|
|
|
color: root.color
|
|
|
|
implicitWidth: root.width
|
2023-08-03 08:19:36 +00:00
|
|
|
implicitHeight: walletAccountsListView.firstItem.height + Style.current.xlPadding
|
2023-01-05 12:50:55 +00:00
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
layer.enabled: walletAccountsListView.footerOverlayed && !walletAccountsListView.atYEnd
|
2023-01-05 12:50:55 +00:00
|
|
|
layer.effect: DropShadow {
|
|
|
|
verticalOffset: -10
|
|
|
|
radius: 20
|
|
|
|
samples: 41
|
|
|
|
fast: true
|
|
|
|
cached: true
|
|
|
|
color: Theme.palette.dropShadow2
|
|
|
|
}
|
|
|
|
|
2023-08-03 08:19:36 +00:00
|
|
|
Separator {
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: -1
|
2023-01-05 12:50:55 +00:00
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-18 12:47:24 +00:00
|
|
|
contentItem: StatusFlatButton {
|
2023-01-05 12:50:55 +00:00
|
|
|
objectName: "savedAddressesBtn"
|
2023-12-26 10:19:41 +00:00
|
|
|
highlighted: RootStore.showSavedAddresses
|
2023-08-03 08:19:36 +00:00
|
|
|
hoverColor: Style.current.backgroundHover
|
2023-01-05 12:50:55 +00:00
|
|
|
asset.bgColor: Theme.palette.primaryColor3
|
|
|
|
text: qsTr("Saved addresses")
|
|
|
|
icon.name: "address"
|
|
|
|
icon.width: 40
|
|
|
|
icon.height: 40
|
2023-06-18 12:47:24 +00:00
|
|
|
icon.color: Theme.palette.primaryColor1
|
2023-01-05 12:50:55 +00:00
|
|
|
isRoundIcon: true
|
|
|
|
textColor: Theme.palette.directColor1
|
|
|
|
textFillWidth: true
|
2023-08-03 08:19:36 +00:00
|
|
|
spacing: walletAccountsListView.firstItem.statusListItemTitleArea.anchors.leftMargin
|
2023-12-26 10:19:41 +00:00
|
|
|
onClicked: root.selectSavedAddresses()
|
2023-03-27 12:49:32 +00:00
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
acceptedButtons: Qt.RightButton
|
2023-05-12 07:11:44 +00:00
|
|
|
cursorShape: Qt.PointingHandCursor
|
2023-03-27 12:49:32 +00:00
|
|
|
propagateComposedEvents: true
|
2023-08-03 08:19:36 +00:00
|
|
|
onClicked: mouse.accepted = true
|
2023-03-27 12:49:32 +00:00
|
|
|
}
|
2022-07-18 10:39:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-03 08:19:36 +00:00
|
|
|
|
2022-03-01 10:14:13 +00:00
|
|
|
}
|
2022-07-26 18:46:07 +00:00
|
|
|
}
|