From 4fbe1f202f4ec5bc53a7b491248c8129425db664 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 22 Jan 2021 11:21:24 +0100 Subject: [PATCH] uiux: adjust hover color for menu items in profile and channel list --- ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml | 5 ++++- .../Profile/LeftTab/components/MenuButton.qml | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml b/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml index f26c7e2e8c..b1ea633e5f 100644 --- a/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml +++ b/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml @@ -35,9 +35,12 @@ Rectangle { id: wrapper color: { - if (ListView.isCurrentItem || wrapper.hovered) { + if (ListView.isCurrentItem) { return Style.current.secondaryBackground } + if (wrapper.hovered) { + return Style.current.backgroundHover + } return Style.current.transparent } anchors.right: parent.right diff --git a/ui/app/AppLayouts/Profile/LeftTab/components/MenuButton.qml b/ui/app/AppLayouts/Profile/LeftTab/components/MenuButton.qml index f2f01e55c5..e5bdc67d16 100644 --- a/ui/app/AppLayouts/Profile/LeftTab/components/MenuButton.qml +++ b/ui/app/AppLayouts/Profile/LeftTab/components/MenuButton.qml @@ -14,7 +14,15 @@ Rectangle { property var onClicked: function () {} id: menuButton - color: hovered || active ? Style.current.secondaryBackground : Style.current.transparent + color: { + if (active) { + return Style.current.secondaryBackground + } + if (hovered) { + return Style.current.backgroundHover + } + return Style.current.transparent + } border.width: 0 height: 48 width: parent.width