status-desktop/ui/app/AppLayouts/Profile/controls/WalletAccountDelegate.qml

40 lines
878 B
QML

import StatusQ.Components 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Core 0.1
import utils 1.0
StatusListItem {
id: root
property var account
property bool showShevronIcon: true
signal goToAccountView()
title: account.name
subTitle: account.address
objectName: account.name
asset.color: Utils.getColorForId(account.colorId)
asset.emoji: account.emoji
asset.name: !account.emoji ? "filled-account": ""
asset.letterSize: 14
asset.isLetterIdenticon: !!account.emoji
asset.bgColor: Theme.palette.primaryColor3
asset.width: 40
asset.height: 40
components: !showShevronIcon ? [] : [ shevronIcon ]
onClicked: {
goToAccountView()
}
StatusIcon {
id: shevronIcon
visible: root.showShevronIcon
icon: "next"
color: Theme.palette.baseColor1
}
}