fix(StatusChatList): expect `model.color` instead of `iconColor` prop
This commit is contained in:
parent
c56c0b684d
commit
1a14f9ebe2
|
@ -559,7 +559,7 @@ Rectangle {
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
hasMention: false
|
hasMention: false
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
iconColor: "blue"
|
color: "blue"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
chatId: "1"
|
chatId: "1"
|
||||||
|
@ -567,7 +567,7 @@ Rectangle {
|
||||||
chatType: StatusChatListItem.Type.PublicChat
|
chatType: StatusChatListItem.Type.PublicChat
|
||||||
muted: false
|
muted: false
|
||||||
hasUnreadMessages: true
|
hasUnreadMessages: true
|
||||||
iconColor: "red"
|
color: "red"
|
||||||
unreadMessagesCount: 1
|
unreadMessagesCount: 1
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -576,7 +576,7 @@ Rectangle {
|
||||||
chatType: StatusChatListItem.Type.OneToOneChat
|
chatType: StatusChatListItem.Type.OneToOneChat
|
||||||
muted: false
|
muted: false
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
iconColor: "green"
|
color: "green"
|
||||||
identicon: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
identicon: "https://pbs.twimg.com/profile_images/1369221718338895873/T_5fny6o_400x400.jpg"
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
}
|
}
|
||||||
|
@ -586,7 +586,7 @@ Rectangle {
|
||||||
chatType: StatusChatListItem.Type.GroupChat
|
chatType: StatusChatListItem.Type.GroupChat
|
||||||
muted: false
|
muted: false
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
iconColor: "purple"
|
color: "purple"
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -595,7 +595,7 @@ Rectangle {
|
||||||
chatType: StatusChatListItem.Type.OneToOneChat
|
chatType: StatusChatListItem.Type.OneToOneChat
|
||||||
muted: true
|
muted: true
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
iconColor: "Orange"
|
color: "Orange"
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -610,7 +610,7 @@ Rectangle {
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
hasMention: false
|
hasMention: false
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
iconColor: "orange"
|
color: "orange"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
chatId: "1"
|
chatId: "1"
|
||||||
|
@ -620,7 +620,7 @@ Rectangle {
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
hasMention: false
|
hasMention: false
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
iconColor: "orange"
|
color: "orange"
|
||||||
categoryId: "public"
|
categoryId: "public"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -631,7 +631,7 @@ Rectangle {
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
hasMention: false
|
hasMention: false
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
iconColor: "orange"
|
color: "orange"
|
||||||
categoryId: "public"
|
categoryId: "public"
|
||||||
}
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
|
@ -642,7 +642,7 @@ Rectangle {
|
||||||
hasUnreadMessages: false
|
hasUnreadMessages: false
|
||||||
hasMention: false
|
hasMention: false
|
||||||
unreadMessagesCount: 0
|
unreadMessagesCount: 0
|
||||||
iconColor: "orange"
|
color: "orange"
|
||||||
categoryId: "dev"
|
categoryId: "dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ Column {
|
||||||
badge.value: model.unreadMessagesCount || 0
|
badge.value: model.unreadMessagesCount || 0
|
||||||
selected: model.chatId === statusChatList.selectedChatId
|
selected: model.chatId === statusChatList.selectedChatId
|
||||||
|
|
||||||
icon.color: model.iconColor || ""
|
icon.color: model.color || ""
|
||||||
image.source: model.identicon || ""
|
image.source: model.identicon || ""
|
||||||
|
|
||||||
onClicked: statusChatList.chatItemSelected(model.chatId)
|
onClicked: statusChatList.chatItemSelected(model.chatId)
|
||||||
|
|
Loading…
Reference in New Issue