2023-03-20 12:29:05 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import AppLayouts.Profile.controls 1.0
|
2024-02-28 12:19:14 +00:00
|
|
|
import AppLayouts.Wallet 1.0
|
|
|
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2023-03-20 12:29:05 +00:00
|
|
|
|
|
|
|
ProfileShowcasePanel {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property string currentWallet
|
|
|
|
|
2024-02-15 17:26:05 +00:00
|
|
|
emptyInShowcasePlaceholderText: qsTr("Accounts here will show on your profile")
|
|
|
|
emptyHiddenPlaceholderText: qsTr("Accounts here will be hidden from your profile")
|
2023-03-20 12:29:05 +00:00
|
|
|
|
2024-02-29 09:07:35 +00:00
|
|
|
delegate: ProfileShowcasePanelDelegate {
|
2024-02-28 12:19:14 +00:00
|
|
|
title: model ? model.name : ""
|
|
|
|
secondaryTitle: WalletUtils.addressToDisplay(model ? model.key : "", "", true, containsMouse)
|
|
|
|
hasEmoji: model && !!model.emoji
|
|
|
|
hasIcon: !hasEmoji
|
|
|
|
icon.name: hasEmoji ? model.emoji : "filled-account"
|
|
|
|
icon.color: model && model.colorId ? Utils.getColorForId(model.colorId) : Theme.palette.primaryColor3
|
|
|
|
highlighted: model ? model.key === root.currentWallet : false
|
2023-03-20 12:29:05 +00:00
|
|
|
}
|
|
|
|
}
|