mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-05 23:35:50 +02:00
ParticipantOverlayButton: avoid bugguy and custom tooltip
Change-Id: Ic92e0931227b8b0f0c9b297036367def7133eb06 GitLab: #1403
This commit is contained in:
parent
be85034d78
commit
8922387217
1 changed files with 0 additions and 37 deletions
|
@ -1,6 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020-2023 Savoir-faire Linux Inc.
|
* Copyright (C) 2020-2023 Savoir-faire Linux Inc.
|
||||||
* Author: Albert Babí <albert.babi@savoirfairelinux.com>
|
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -22,45 +21,9 @@ import "../../commoncomponents"
|
||||||
PushButton {
|
PushButton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property alias toolTipText: toolTip.text
|
|
||||||
|
|
||||||
normalColor: JamiTheme.buttonConference
|
normalColor: JamiTheme.buttonConference
|
||||||
hoveredColor: JamiTheme.buttonConferenceHovered
|
hoveredColor: JamiTheme.buttonConferenceHovered
|
||||||
pressedColor: JamiTheme.buttonConferencePressed
|
pressedColor: JamiTheme.buttonConferencePressed
|
||||||
|
|
||||||
imageColor: JamiTheme.whiteColor
|
imageColor: JamiTheme.whiteColor
|
||||||
hoverEnabled: false
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
id: toolTipRect
|
|
||||||
height: 16
|
|
||||||
width: toolTip.width + 8
|
|
||||||
anchors {
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
top: parent.bottom
|
|
||||||
topMargin: isBarLayout ? 6 : 2
|
|
||||||
}
|
|
||||||
color: isBarLayout ? JamiTheme.darkGreyColorOpacity : "transparent"
|
|
||||||
visible: hover.hovered && !isSmall
|
|
||||||
radius: 2
|
|
||||||
|
|
||||||
Text {
|
|
||||||
id: toolTip
|
|
||||||
anchors.centerIn: parent
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
color: JamiTheme.whiteColor
|
|
||||||
font.pointSize: JamiTheme.tinyFontSize
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
HoverHandler {
|
|
||||||
id: hover
|
|
||||||
onHoveredChanged: {
|
|
||||||
root.forceHovered = hover.hovered;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue