Only highlight current chat on desktop platforms

parent df15c17b
Pipeline #191 passed with stage
in 7 minutes and 35 seconds
......@@ -76,8 +76,11 @@ Kirigami.ScrollablePage {
kaidan.avatarStorage.getAvatarUrl(model.jid) :
kaidan.getResourcePath("images/fallback-avatar.svg")
backgroundColor: {
kaidan.chatPartner == model.jid ? Kirigami.Theme.highlightColor
: Kirigami.Theme.backgroundColor
if (!Kirigami.Settings.isMobile && kaidan.chatPartner == model.jid) {
Kirigami.Theme.highlightColor
} else {
Kirigami.Theme.backgroundColor
}
}
onClicked: {
// first push the chat page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment