Skip to content
Snippets Groups Projects
Commit 12052317 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

participantoverlay: fix buttons hover color

Change-Id: I981d3db41a2a2fecbece83d1d84f63c48de82888
GitLab: #996
parent 030ed150
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,8 @@ AbstractButton {
hoverEnabled: true
focusPolicy: Qt.TabFocus
property bool forceHovered: false
Accessible.role: Accessible.Button
Accessible.name: buttonText
Accessible.description: toolTipText
......@@ -163,6 +165,10 @@ AbstractButton {
name: "hovered"; when: hovered || root.focus
PropertyChanges { target: background; color: hoveredColor }
},
State {
name: "forceHovered"; when: forceHovered || root.focus
PropertyChanges { target: background; color: hoveredColor }
},
State {
name: "normal"; when: !hovered && ! checked
PropertyChanges { target: background; color: normalColor }
......
......@@ -403,7 +403,6 @@ Item {
}
}
Rectangle {
id: alertMessage
......
......@@ -43,8 +43,8 @@ PushButton {
top: parent.bottom
topMargin: isBarLayout? 6 : 2
}
color : isBarLayout? JamiTheme.darkGreyColorOpacity
: "transparent"
color : isBarLayout ? JamiTheme.darkGreyColorOpacity
: "transparent"
visible: hover.hovered && !isSmall
radius: 2
......@@ -56,9 +56,15 @@ PushButton {
font.pointSize: JamiTheme.tinyFontSize
}
}
Item {
anchors.fill: parent
HoverHandler { id: hover }
HoverHandler {
id: hover
onHoveredChanged: {
root.forceHovered = hover.hovered
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment