diff --git a/src/app/commoncomponents/PushButton.qml b/src/app/commoncomponents/PushButton.qml index 5922449af0b67deebf81d6f188e05c8a6188f4c1..55f86cab6ce8c138b57f983ce49fac01a1cb4366 100644 --- a/src/app/commoncomponents/PushButton.qml +++ b/src/app/commoncomponents/PushButton.qml @@ -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 } diff --git a/src/app/mainview/components/ParticipantOverlay.qml b/src/app/mainview/components/ParticipantOverlay.qml index 2aa3d9cba19d20251f9131af7b7b079efc683c53..91d949022aea8ca9050cfbb16e1d0d0d70f00e75 100644 --- a/src/app/mainview/components/ParticipantOverlay.qml +++ b/src/app/mainview/components/ParticipantOverlay.qml @@ -403,7 +403,6 @@ Item { } } - Rectangle { id: alertMessage diff --git a/src/app/mainview/components/ParticipantOverlayButton.qml b/src/app/mainview/components/ParticipantOverlayButton.qml index ecacd68bca46f03fda560922b11ce319912ab89e..ea62b2bebf37e8bda51a3afe1088d4f8ec6213c3 100644 --- a/src/app/mainview/components/ParticipantOverlayButton.qml +++ b/src/app/mainview/components/ParticipantOverlayButton.qml @@ -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 + } + } } }