mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
66c51ed777
- Added network prefixes in profile showcase accounts delegate and included them in the searcher. - Added filter to just display own accounts in profile showcase accounts tab. Closes #13899
34 lines
1.2 KiB
QML
34 lines
1.2 KiB
QML
import QtQuick 2.15
|
|
|
|
import utils 1.0
|
|
|
|
import AppLayouts.Profile.controls 1.0
|
|
import AppLayouts.Wallet 1.0
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ 0.1
|
|
|
|
ProfileShowcasePanel {
|
|
id: root
|
|
|
|
property string currentWallet
|
|
|
|
emptyInShowcasePlaceholderText: qsTr("Accounts here will show on your profile")
|
|
emptyHiddenPlaceholderText: qsTr("Accounts here will be hidden from your profile")
|
|
emptySearchPlaceholderText: qsTr("No accounts matching search")
|
|
searchPlaceholderText: qsTr("Search account name or address")
|
|
delegate: ProfileShowcasePanelDelegate {
|
|
title: model ? model.name : ""
|
|
secondaryTitle: WalletUtils.addressToDisplay(model ? model.address ?? "" : "",
|
|
model ? model.preferredSharingChainShortNames ?? "" : "",
|
|
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.address === root.currentWallet : false
|
|
}
|
|
}
|