Color member name on hover in sidepane

This commit is contained in:
miruka 2019-11-30 05:12:00 -04:00
parent a01de1f3d6
commit 580f92e0be

View File

@ -1,5 +1,6 @@
import QtQuick 2.12 import QtQuick 2.12
import "../../Base" import "../../Base"
import "../../utils.js" as Utils
HTileDelegate { HTileDelegate {
id: memberDelegate id: memberDelegate
@ -14,8 +15,14 @@ HTileDelegate {
} }
title.text: model.display_name || model.user_id title.text: model.display_name || model.user_id
title.color: theme.chat.roomSidePane.member.name title.color:
memberDelegate.hovered ?
Utils.nameColor(model.display_name || model.user_id.substring(1)) :
theme.chat.roomSidePane.member.name
subtitle.text: model.user_id subtitle.text: model.user_id
subtitle.color: theme.chat.roomSidePane.member.subtitle subtitle.color: theme.chat.roomSidePane.member.subtitle
Behavior on title.color { HColorAnimation {} }
} }