uiux: adjust hover color for menu items in profile and channel list
This commit is contained in:
parent
062c2e26b2
commit
4fbe1f202f
|
@ -35,9 +35,12 @@ Rectangle {
|
||||||
|
|
||||||
id: wrapper
|
id: wrapper
|
||||||
color: {
|
color: {
|
||||||
if (ListView.isCurrentItem || wrapper.hovered) {
|
if (ListView.isCurrentItem) {
|
||||||
return Style.current.secondaryBackground
|
return Style.current.secondaryBackground
|
||||||
}
|
}
|
||||||
|
if (wrapper.hovered) {
|
||||||
|
return Style.current.backgroundHover
|
||||||
|
}
|
||||||
return Style.current.transparent
|
return Style.current.transparent
|
||||||
}
|
}
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
|
@ -14,7 +14,15 @@ Rectangle {
|
||||||
property var onClicked: function () {}
|
property var onClicked: function () {}
|
||||||
|
|
||||||
id: menuButton
|
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
|
border.width: 0
|
||||||
height: 48
|
height: 48
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
Loading…
Reference in New Issue