2021-05-21 13:14:08 +00:00
|
|
|
import QtQuick 2.14
|
2022-08-04 14:58:21 +00:00
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQml.Models 2.14
|
2021-05-21 13:14:08 +00:00
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Components 0.1
|
2022-03-29 22:23:54 +00:00
|
|
|
import StatusQ.Core.Utils 0.1
|
2021-05-21 13:14:08 +00:00
|
|
|
|
2022-08-04 14:58:21 +00:00
|
|
|
ColumnLayout {
|
|
|
|
spacing: 5
|
2021-05-21 13:14:08 +00:00
|
|
|
|
2021-05-25 15:35:32 +00:00
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-25 15:35:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-25 15:35:32 +00:00
|
|
|
badge.value: 1
|
|
|
|
}
|
|
|
|
StatusNavigationListItem {
|
2022-05-04 10:35:15 +00:00
|
|
|
title: "Menu Item (selected) with very long text"
|
2021-05-25 15:35:32 +00:00
|
|
|
selected: true
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-25 15:35:32 +00:00
|
|
|
badge.value: 1
|
|
|
|
}
|
|
|
|
|
2021-05-25 10:47:23 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
id: test
|
|
|
|
name: "public-channel"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
}
|
|
|
|
|
2021-06-07 12:16:37 +00:00
|
|
|
StatusChatListCategoryItem {
|
|
|
|
title: "Chat list category"
|
|
|
|
opened: false
|
2021-06-15 10:17:51 +00:00
|
|
|
showActionButtons: true
|
2021-06-07 12:16:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListCategoryItem {
|
|
|
|
title: "Chat list category (opened)"
|
|
|
|
opened: true
|
2021-06-15 10:17:51 +00:00
|
|
|
showActionButtons: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListCategoryItem {
|
|
|
|
title: "Chat list category (no buttons)"
|
|
|
|
opened: true
|
2021-06-07 12:16:37 +00:00
|
|
|
}
|
|
|
|
|
2022-08-04 14:58:21 +00:00
|
|
|
StatusChatListCategoryItem {
|
2022-08-04 15:10:35 +00:00
|
|
|
id: categoryItemInteractive
|
|
|
|
title: "Chat category interactive"
|
2022-08-04 14:58:21 +00:00
|
|
|
showActionButtons: true
|
|
|
|
onAddButtonClicked: testEventsList.eventTriggered("Add button clicked")
|
|
|
|
onMenuButtonClicked: testEventsList.eventTriggered("Menu button clicked")
|
2022-08-04 15:10:35 +00:00
|
|
|
onToggleButtonClicked: {
|
|
|
|
opened = !opened
|
|
|
|
testEventsList.eventTriggered("Toggle button clicked")
|
|
|
|
}
|
2022-08-04 14:58:21 +00:00
|
|
|
onTitleClicked: {
|
|
|
|
testEventsList.eventTriggered("Title clicked")
|
|
|
|
}
|
|
|
|
onClicked: {
|
2022-08-04 15:10:35 +00:00
|
|
|
opened = !opened
|
|
|
|
testEventsList.eventTriggered("Item clicked", itemId)
|
2022-08-04 14:58:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ListView {
|
|
|
|
id: testEventsList
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
2022-08-04 15:10:35 +00:00
|
|
|
Layout.preferredHeight: categoryItemInteractive.opened ? 20 * count : 0
|
2022-08-04 14:58:21 +00:00
|
|
|
|
|
|
|
clip: true
|
|
|
|
|
|
|
|
function eventTriggered(message) {
|
|
|
|
let obj = eventDelegateComponent.createObject()
|
|
|
|
obj.text = message
|
|
|
|
model.insert(0, obj)
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: eventDelegateComponent
|
|
|
|
|
|
|
|
ItemDelegate {
|
|
|
|
implicitHeight: 20
|
|
|
|
|
|
|
|
property int index: ObjectModel.index
|
|
|
|
|
|
|
|
Timer {
|
|
|
|
interval: 5000; running: true
|
2022-08-04 15:10:35 +00:00
|
|
|
onTriggered: testObjectModel.remove(index)
|
2022-08-04 14:58:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
model: ObjectModel {
|
2022-08-04 15:10:35 +00:00
|
|
|
id: testObjectModel
|
2022-08-04 14:58:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-25 10:47:23 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "group-chat"
|
|
|
|
type: StatusChatListItem.Type.GroupChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "community-channel"
|
|
|
|
type: StatusChatListItem.Type.CommunityChat
|
|
|
|
}
|
|
|
|
|
2022-03-03 17:00:46 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "community-channel-emoji"
|
|
|
|
type: StatusChatListItem.Type.CommunityChat
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.emoji: "😁"
|
2022-03-03 17:00:46 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 10:47:23 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "community-channel-with-image"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "qrc:/demoapp/data/profile-image-1.jpeg"
|
2021-05-25 10:47:23 +00:00
|
|
|
type: StatusChatListItem.Type.CommunityChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "Weird Crazy Otter"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "qrc:/demoapp/data/profile-image-1.jpeg"
|
2021-05-25 10:47:23 +00:00
|
|
|
type: StatusChatListItem.Type.OneToOneChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "has-unread-messages"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
hasUnreadMessages: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "has-mentions"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
2022-02-01 09:22:06 +00:00
|
|
|
hasUnreadMessages: true
|
|
|
|
notificationsCount: 1
|
2021-05-25 10:47:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "is-muted"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
muted: true
|
|
|
|
onUnmute: muted = false
|
|
|
|
}
|
|
|
|
|
2021-07-15 12:22:26 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "muted-with-mentions"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
muted: true
|
|
|
|
hasUnreadMessages: true
|
2022-02-01 09:22:06 +00:00
|
|
|
notificationsCount: 1
|
2021-07-15 12:22:26 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 10:47:23 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "selected-channel"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
selected: true
|
|
|
|
}
|
2021-07-15 12:22:26 +00:00
|
|
|
|
2021-05-25 10:47:23 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "selected-muted-channel"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
selected: true
|
|
|
|
muted: true
|
|
|
|
}
|
|
|
|
|
2021-07-15 12:22:26 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "selected-muted-channel-with-unread-messages"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
selected: true
|
|
|
|
muted: true
|
|
|
|
hasUnreadMessages: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "selected-muted-with-mentions"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
selected: true
|
|
|
|
muted: true
|
|
|
|
hasUnreadMessages: true
|
2022-02-01 09:22:06 +00:00
|
|
|
notificationsCount: 1
|
2021-07-15 12:22:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-05-21 13:14:08 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
}
|
|
|
|
|
2021-07-20 12:01:27 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
tertiaryTitle: "Tertiary title"
|
|
|
|
|
|
|
|
statusListItemTitle.font.pixelSize: 17
|
|
|
|
statusListItemTitle.font.weight: Font.Bold
|
|
|
|
}
|
|
|
|
|
2021-07-22 14:27:29 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Super long description that causes a multiline paragraph and makes the size of the component grow. Let's see how it behaves."
|
|
|
|
tertiaryTitle: "Tertiary title"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-07-22 14:27:29 +00:00
|
|
|
|
|
|
|
statusListItemTitle.font.pixelSize: 17
|
|
|
|
statusListItemTitle.font.weight: Font.Bold
|
|
|
|
}
|
|
|
|
|
2021-05-21 13:14:08 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "qrc:/demoapp/data/profile-image-1.jpeg"
|
2021-05-21 13:14:08 +00:00
|
|
|
}
|
|
|
|
|
2021-07-15 12:57:05 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
|
|
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
|
|
|
asset.imgIsIdenticon: true
|
2021-07-15 12:57:05 +00:00
|
|
|
}
|
|
|
|
|
2021-05-21 13:14:08 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
components: [StatusButton {
|
|
|
|
text: "Button"
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
components: [StatusSwitch {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
components: [StatusRadioButton {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
components: [StatusCheckBox {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
label: "Text"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
label: "Text"
|
|
|
|
components: [
|
|
|
|
StatusButton {
|
|
|
|
text: "Button"
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
label: "Text"
|
|
|
|
components: [StatusSwitch {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
label: "Text"
|
|
|
|
components: [
|
|
|
|
StatusRadioButton {}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
label: "Text"
|
|
|
|
components: [StatusCheckBox {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-21 13:14:08 +00:00
|
|
|
label: "Text"
|
|
|
|
components: [
|
|
|
|
StatusBadge {
|
|
|
|
value: 1
|
|
|
|
},
|
|
|
|
StatusIcon {
|
|
|
|
icon: "info"
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
width: 20
|
|
|
|
height: 20
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-05-26 11:02:22 +00:00
|
|
|
|
2021-06-22 08:59:54 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-06-22 08:59:54 +00:00
|
|
|
type: StatusListItem.Type.Secondary
|
|
|
|
}
|
|
|
|
|
2021-07-08 10:39:46 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
|
|
|
asset.color: "orange"
|
2021-07-08 10:39:46 +00:00
|
|
|
}
|
|
|
|
|
2021-08-26 10:18:56 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
titleAsideText: "test"
|
|
|
|
}
|
|
|
|
|
2021-07-08 16:02:47 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "delete"
|
2021-07-08 16:02:47 +00:00
|
|
|
type: StatusListItem.Type.Danger
|
|
|
|
}
|
|
|
|
|
2021-07-23 16:28:16 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Badge"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
|
|
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
|
|
|
asset.imgIsIdenticon: true
|
|
|
|
badge.asset.isImage: true
|
|
|
|
badge.asset.name: "qrc:/demoapp/data/profile-image-1.jpeg"
|
2021-07-23 16:28:16 +00:00
|
|
|
badge.primaryText: "CryptoKitties"
|
|
|
|
badge.secondaryText: "#test"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Badge 2"
|
|
|
|
subTitle: "Subtitle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2021-07-23 16:28:16 +00:00
|
|
|
badge.primaryText: "CryptoKitties"
|
|
|
|
badge.secondaryText: "#test"
|
2022-09-02 15:40:30 +00:00
|
|
|
badge.asset.color: "orange"
|
|
|
|
badge.asset.isLetterIdenticon: true
|
2021-07-23 16:28:16 +00:00
|
|
|
}
|
|
|
|
|
2022-03-04 13:16:26 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Tags"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-03-09 10:31:04 +00:00
|
|
|
bottomModel: 3
|
|
|
|
bottomDelegate: StatusListItemTag {
|
|
|
|
title: "tag"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-03-09 10:31:04 +00:00
|
|
|
}
|
2022-03-04 13:16:26 +00:00
|
|
|
}
|
2022-03-29 22:23:54 +00:00
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Inline Tags"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-08-15 11:03:20 +00:00
|
|
|
tagsModel: ListModel{
|
|
|
|
ListElement {
|
|
|
|
name: "helloworld.eth"
|
|
|
|
emoji: "😁"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "account1"
|
|
|
|
emoji: "😁"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "account2"
|
|
|
|
emoji: "😁"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "account3"
|
|
|
|
emoji: "😁"
|
|
|
|
}
|
|
|
|
ListElement {
|
|
|
|
name: "account4"
|
|
|
|
emoji: "😁"
|
|
|
|
}
|
|
|
|
}
|
2022-03-29 22:23:54 +00:00
|
|
|
tagsDelegate: StatusListItemTag {
|
2022-12-21 13:57:41 +00:00
|
|
|
bgColor: "blue"
|
|
|
|
bgRadius: 6
|
2022-03-29 22:23:54 +00:00
|
|
|
height: 24
|
|
|
|
closeButtonVisible: false
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.emoji: model.emoji
|
|
|
|
asset.emojiSize: Emoji.size.verySmall
|
|
|
|
asset.isLetterIdenticon: true
|
2022-08-15 11:03:20 +00:00
|
|
|
title: model.name
|
2022-03-29 22:23:54 +00:00
|
|
|
titleText.font.pixelSize: 12
|
|
|
|
titleText.color: Theme.palette.indirectColor1
|
|
|
|
}
|
|
|
|
}
|
2022-03-04 13:16:26 +00:00
|
|
|
|
2022-03-11 19:34:21 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Emoji"
|
|
|
|
subTitle: "Emoji"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.emoji: "😁"
|
|
|
|
asset.color: "yellow"
|
|
|
|
asset.letterSize: 14
|
|
|
|
asset.isLetterIdenticon: true
|
2022-03-11 19:34:21 +00:00
|
|
|
}
|
|
|
|
|
2021-05-26 11:02:22 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
}
|
|
|
|
|
2021-08-30 13:30:09 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
title: "Title"
|
2023-03-14 19:20:25 +00:00
|
|
|
subTitle: "Very long subtitle with icon to see it wrap words when overflown"
|
2021-08-30 13:30:09 +00:00
|
|
|
value: "None"
|
|
|
|
sensor.enabled: true
|
2023-03-14 19:20:25 +00:00
|
|
|
asset.name: "copy"
|
2021-08-30 13:30:09 +00:00
|
|
|
}
|
|
|
|
|
2021-05-26 11:02:22 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
tooltip.text: "Tooltip"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.name: "info"
|
2021-05-26 11:02:22 +00:00
|
|
|
iconButton.onClicked: tooltip.visible = !tooltip.visible
|
|
|
|
}
|
|
|
|
|
2021-06-23 12:57:29 +00:00
|
|
|
StatusContactRequestsIndicatorListItem {
|
|
|
|
title: "Contact requests"
|
|
|
|
requestsCount: 3
|
|
|
|
}
|
2022-01-28 14:29:29 +00:00
|
|
|
|
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "This is an example"
|
|
|
|
userName: "annabelle"
|
2022-06-12 14:25:17 +00:00
|
|
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
|
|
|
isVerified: true
|
|
|
|
isContact: true
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
2022-01-28 14:29:29 +00:00
|
|
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.imgIsIdenticon: true
|
2022-06-12 14:25:17 +00:00
|
|
|
status: 1 // FIXME: use enum
|
2022-02-17 08:20:17 +00:00
|
|
|
ringSettings.ringSpecModel:
|
|
|
|
ListModel {
|
|
|
|
ListElement {colorId: 13; segmentLength: 5}
|
|
|
|
ListElement {colorId: 31; segmentLength: 5}
|
|
|
|
ListElement {colorId: 10; segmentLength: 1}
|
|
|
|
ListElement {colorId: 2; segmentLength: 5}
|
|
|
|
ListElement {colorId: 26; segmentLength: 2}
|
|
|
|
ListElement {colorId: 19; segmentLength: 4}
|
|
|
|
ListElement {colorId: 28; segmentLength: 3}
|
|
|
|
}
|
|
|
|
ringSettings.distinctiveColors: Theme.palette.identiconRingColors
|
2022-01-28 14:29:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "carmen.eth"
|
2022-06-12 14:25:17 +00:00
|
|
|
isUntrustworthy: true
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-01-28 14:29:29 +00:00
|
|
|
}
|
|
|
|
|
2022-05-04 10:35:15 +00:00
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "very-long-annoying-nickname.eth"
|
2022-06-12 14:25:17 +00:00
|
|
|
isUntrustworthy: true
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-05-04 10:35:15 +00:00
|
|
|
}
|
|
|
|
|
2022-09-07 16:28:52 +00:00
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "untrusted-admin.eth"
|
|
|
|
asset.isLetterIdenticon: true
|
|
|
|
isUntrustworthy: true
|
|
|
|
isAdmin: true
|
|
|
|
isContact: true
|
|
|
|
}
|
|
|
|
|
2022-01-28 14:29:29 +00:00
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "This girl I know from work"
|
|
|
|
userName: "annabelle"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-06-12 14:25:17 +00:00
|
|
|
status: 1 // FIXME: use enum
|
2022-01-28 14:29:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "Mark Cuban"
|
|
|
|
userName: "annabelle"
|
2022-06-12 14:25:17 +00:00
|
|
|
pubKey: "0x043a7ed0e8752236a4688563652fd0296453cef00a5dcddbe252dc74f72cc1caa97a2b65e4a1a52d9c30a84c9966beaaaf6b333d659cbdd2e486b443ed1012cf04"
|
|
|
|
isContact: true
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isImage: true
|
|
|
|
asset.name: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0BhCExPynn1gWf9bx498P7/
|
2022-01-28 14:29:29 +00:00
|
|
|
nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.imgIsIdenticon: true
|
2022-01-28 14:29:29 +00:00
|
|
|
}
|
2022-06-01 12:00:15 +00:00
|
|
|
|
|
|
|
StatusMemberListItem {
|
|
|
|
nickName: "admin.guy"
|
2022-09-02 15:40:30 +00:00
|
|
|
userName: "adguy"
|
2022-06-01 12:00:15 +00:00
|
|
|
isAdmin: true
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.isLetterIdenticon: true
|
2022-06-12 14:25:17 +00:00
|
|
|
isUntrustworthy: true
|
2022-06-01 12:00:15 +00:00
|
|
|
}
|
2022-06-22 07:40:17 +00:00
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.topMargin: 16
|
|
|
|
text: "Loading features:"
|
|
|
|
font.pixelSize: 17
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Nokia 3310"
|
|
|
|
subTitle: "Incoming device"
|
|
|
|
label: "loading: true"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.width: 40
|
|
|
|
asset.height: 40
|
|
|
|
asset.emoji: "😁"
|
|
|
|
asset.color: "hotpink"
|
|
|
|
asset.letterSize: 14
|
|
|
|
asset.isLetterIdenticon: true
|
2022-06-22 07:40:17 +00:00
|
|
|
loading: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Nokia 3310"
|
|
|
|
subTitle: "Device"
|
|
|
|
label: "loadingFailed: true"
|
2022-09-02 15:40:30 +00:00
|
|
|
asset.width: 40
|
|
|
|
asset.height: 40
|
|
|
|
asset.emoji: "😁"
|
|
|
|
asset.color: "hotpink"
|
|
|
|
asset.letterSize: 14
|
|
|
|
asset.isLetterIdenticon: true
|
2022-06-22 07:40:17 +00:00
|
|
|
loadingFailed: true
|
|
|
|
}
|
2022-09-08 22:03:28 +00:00
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
implicitWidth: 600
|
|
|
|
title: "List Item with Tags"
|
|
|
|
subTitle: "03:32"
|
|
|
|
asset.isLetterIdenticon: true
|
|
|
|
inlineTagModel: 6
|
|
|
|
inlineTagDelegate: StatusListItemTag {
|
|
|
|
height: 24
|
|
|
|
title: "tag"
|
|
|
|
asset.isLetterIdenticon: true
|
|
|
|
}
|
|
|
|
components: [
|
|
|
|
ColumnLayout {
|
|
|
|
Row {
|
|
|
|
Layout.alignment: Qt.AlignRight
|
|
|
|
spacing: 4
|
|
|
|
StatusIcon {
|
|
|
|
color: Theme.palette.successColor1
|
|
|
|
icon: "arrow-up"
|
|
|
|
rotation: 135
|
|
|
|
height: 18
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
text: "0.0000015 ETH"
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.alignment: Qt.AlignRight
|
|
|
|
text: "1201.10 USD"
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2021-05-21 13:14:08 +00:00
|
|
|
}
|