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

39 lines
838 B
QML
Raw Normal View History

2022-03-01 14:40:53 +00:00
import StatusQ.Components 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Core 0.1
StatusListItem {
2022-06-22 12:16:21 +00:00
id: root
2022-03-01 14:40:53 +00:00
property var account
2022-06-22 12:16:21 +00:00
property bool showShevronIcon: true
signal goToAccountView()
2022-03-01 14:40:53 +00:00
title: account.name
subTitle: account.address
objectName: account.name
asset.color: account.color
asset.emoji: account.emoji
asset.name: !account.emoji ? "filled-account": ""
asset.letterSize: 14
asset.isLetterIdenticon: !!account.emoji
asset.bgColor: Theme.palette.primaryColor3
2022-09-27 21:26:26 +00:00
asset.width: 40
asset.height: 40
2022-06-22 12:16:21 +00:00
components: !showShevronIcon ? [] : [ shevronIcon ]
onClicked: {
goToAccountView()
}
2022-06-22 12:16:21 +00:00
StatusIcon {
id: shevronIcon
visible: root.showShevronIcon
2023-02-28 14:54:10 +00:00
icon: "next"
2022-06-22 12:16:21 +00:00
color: Theme.palette.baseColor1
}
}