From 580f92e0bec5220fde5727d5c55311c44f371d4e Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 30 Nov 2019 05:12:00 -0400 Subject: [PATCH] Color member name on hover in sidepane --- src/qml/Chat/RoomSidePane/MemberDelegate.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/qml/Chat/RoomSidePane/MemberDelegate.qml b/src/qml/Chat/RoomSidePane/MemberDelegate.qml index beb2c0bd..5864fb25 100644 --- a/src/qml/Chat/RoomSidePane/MemberDelegate.qml +++ b/src/qml/Chat/RoomSidePane/MemberDelegate.qml @@ -1,5 +1,6 @@ import QtQuick 2.12 import "../../Base" +import "../../utils.js" as Utils HTileDelegate { id: memberDelegate @@ -14,8 +15,14 @@ HTileDelegate { } 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.color: theme.chat.roomSidePane.member.subtitle + + + Behavior on title.color { HColorAnimation {} } }