2021-05-21 13:14:08 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
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
|
|
|
|
|
|
|
|
GridLayout {
|
|
|
|
columns: 1
|
|
|
|
columnSpacing: 5
|
|
|
|
rowSpacing: 5
|
|
|
|
|
2021-05-25 15:35:32 +00:00
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item"
|
|
|
|
icon.name: "info"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item"
|
|
|
|
icon.name: "info"
|
|
|
|
badge.value: 1
|
|
|
|
}
|
|
|
|
StatusNavigationListItem {
|
|
|
|
title: "Menu Item (selected)"
|
|
|
|
selected: true
|
|
|
|
icon.name: "info"
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-05-25 10:47:23 +00:00
|
|
|
StatusChatListItem {
|
|
|
|
name: "group-chat"
|
|
|
|
type: StatusChatListItem.Type.GroupChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "community-channel"
|
|
|
|
type: StatusChatListItem.Type.CommunityChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "community-channel-with-image"
|
|
|
|
image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
type: StatusChatListItem.Type.CommunityChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "Weird Crazy Otter"
|
|
|
|
image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
type: StatusChatListItem.Type.OneToOneChat
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "has-unread-messages"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
hasUnreadMessages: true
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusChatListItem {
|
|
|
|
name: "has-mentions"
|
|
|
|
type: StatusChatListItem.Type.PublicChat
|
|
|
|
badge.value: 1
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
badge.value: 1
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
badge.value: 1
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
icon.name: "info"
|
|
|
|
|
|
|
|
statusListItemTitle.font.pixelSize: 17
|
|
|
|
statusListItemTitle.font.weight: Font.Bold
|
|
|
|
}
|
|
|
|
|
2021-05-21 13:14:08 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
}
|
|
|
|
|
2021-07-15 12:57:05 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
image.source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0Bh
|
|
|
|
CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
|
|
|
image.isIdenticon: true
|
|
|
|
}
|
|
|
|
|
2021-05-21 13:14:08 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
components: [StatusButton {
|
|
|
|
text: "Button"
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
components: [StatusSwitch {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
components: [StatusRadioButton {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
components: [StatusCheckBox {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
label: "Text"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
label: "Text"
|
|
|
|
components: [
|
|
|
|
StatusButton {
|
|
|
|
text: "Button"
|
|
|
|
size: StatusBaseButton.Size.Small
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
label: "Text"
|
|
|
|
components: [StatusSwitch {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
label: "Text"
|
|
|
|
components: [
|
|
|
|
StatusRadioButton {}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
label: "Text"
|
|
|
|
components: [StatusCheckBox {}]
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.name: "info"
|
|
|
|
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"
|
|
|
|
icon.name: "info"
|
|
|
|
type: StatusListItem.Type.Secondary
|
|
|
|
}
|
|
|
|
|
2021-07-08 10:39:46 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "Title"
|
|
|
|
icon.isLetterIdenticon: true
|
2021-10-20 14:35:54 +00:00
|
|
|
icon.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"
|
|
|
|
icon.name: "delete"
|
|
|
|
type: StatusListItem.Type.Danger
|
|
|
|
}
|
|
|
|
|
2021-07-23 16:28:16 +00:00
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Badge"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
image.source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAlklEQVR4nOzW0QmDQBAG4SSkl7SUQlJGCrElq9F3QdjjVhh/5nv3cFhY9vUIYQiNITSG0Bh
|
|
|
|
CExPynn1gWf9bx498P7/nzPcxEzGExhBdJGYihtAYQlO+tUZvqrPbqeudo5iJGEJjCE15a3VtodH3q2ImYgiNITTlTdG1nUZ5a92VITQxITFiJmIIjSE0htAYQrMHAAD//+wwFVpz+yqXAAAAAElFTkSuQmCC"
|
|
|
|
image.isIdenticon: true
|
|
|
|
badge.image.source: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
|
|
|
badge.primaryText: "CryptoKitties"
|
|
|
|
badge.secondaryText: "#test"
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusListItem {
|
|
|
|
title: "List Item with Badge 2"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
icon.isLetterIdenticon: true
|
|
|
|
badge.primaryText: "CryptoKitties"
|
|
|
|
badge.secondaryText: "#test"
|
|
|
|
badge.icon.color: "orange"
|
|
|
|
badge.icon.isLetterIdenticon: true
|
|
|
|
}
|
|
|
|
|
2021-05-26 11:02:22 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
}
|
|
|
|
|
2021-08-30 13:30:09 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
value: "None"
|
|
|
|
sensor.enabled: true
|
|
|
|
}
|
|
|
|
|
2021-05-26 11:02:22 +00:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
title: "Title"
|
|
|
|
subTitle: "Subtitle"
|
|
|
|
tooltip.text: "Tooltip"
|
|
|
|
icon.name: "info"
|
|
|
|
iconButton.onClicked: tooltip.visible = !tooltip.visible
|
|
|
|
}
|
|
|
|
|
2021-06-23 12:57:29 +00:00
|
|
|
StatusContactRequestsIndicatorListItem {
|
|
|
|
title: "Contact requests"
|
|
|
|
requestsCount: 3
|
|
|
|
}
|
2021-05-21 13:14:08 +00:00
|
|
|
}
|