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-07 09:33:38 +00:00
|
|
|
|
2022-03-01 14:40:53 +00:00
|
|
|
title: account.name
|
|
|
|
subTitle: account.address
|
2022-03-07 09:33:38 +00:00
|
|
|
icon.color: account.color
|
2022-03-10 17:01:17 +00:00
|
|
|
icon.emoji: account.emoji
|
|
|
|
icon.name: !account.emoji ? "filled-account": ""
|
|
|
|
icon.letterSize: 14
|
|
|
|
icon.isLetterIdenticon: !!account.emoji
|
|
|
|
icon.background.color: Theme.palette.indirectColor1
|
2022-03-01 14:40:53 +00:00
|
|
|
width: parent.width
|
2022-06-22 12:16:21 +00:00
|
|
|
|
|
|
|
components: !showShevronIcon ? [] : [ shevronIcon ]
|
2022-03-07 09:33:38 +00:00
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
goToAccountView()
|
|
|
|
}
|
2022-06-22 12:16:21 +00:00
|
|
|
|
|
|
|
StatusIcon {
|
|
|
|
id: shevronIcon
|
|
|
|
visible: root.showShevronIcon
|
|
|
|
icon: "chevron-down"
|
|
|
|
rotation: 270
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
2022-03-10 17:01:17 +00:00
|
|
|
}
|