Add offline presence text
This commit is contained in:
parent
215557e353
commit
8644ddaad4
|
@ -28,16 +28,28 @@ HTile {
|
||||||
}
|
}
|
||||||
|
|
||||||
HColumnLayout {
|
HColumnLayout {
|
||||||
TitleLabel {
|
HRowLayout {
|
||||||
text: model.display_name || model.id
|
TitleLabel {
|
||||||
color:
|
text: model.display_name || model.id
|
||||||
member.hovered ?
|
color:
|
||||||
utils.nameColor(
|
member.hovered ?
|
||||||
model.display_name || model.id.substring(1)
|
utils.nameColor(
|
||||||
) :
|
model.display_name || model.id.substring(1)
|
||||||
theme.chat.roomPane.listView.member.name
|
) :
|
||||||
|
theme.chat.roomPane.listView.member.name
|
||||||
|
|
||||||
Behavior on color { HColorAnimation {} }
|
Behavior on color { HColorAnimation {} }
|
||||||
|
}
|
||||||
|
|
||||||
|
TitleRightInfoLabel {
|
||||||
|
tile: member
|
||||||
|
text:
|
||||||
|
model.presence === "offline" &&
|
||||||
|
model.last_active_ago !== -1 ?
|
||||||
|
"offline for " +
|
||||||
|
utils.formatRelativeTime(model.last_active_ago) :
|
||||||
|
""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SubtitleLabel {
|
SubtitleLabel {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user