mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
feat(Popup/DropDownMenu): add isOpen function
This commit is contained in:
parent
2dd1a68117
commit
33059cc20b
3 changed files with 7 additions and 3 deletions
|
|
@ -28,6 +28,10 @@ Rectangle {
|
|||
signal menuClosed
|
||||
signal menuOpened
|
||||
|
||||
function isOpen () {
|
||||
return visible
|
||||
}
|
||||
|
||||
function showMenu () {
|
||||
if (visible) {
|
||||
return
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ QtObject {
|
|||
property QtObject shadow: QtObject {
|
||||
property color color: Colors.f
|
||||
|
||||
property int horizontalOffset: 0
|
||||
property int horizontalOffset: 2
|
||||
property int radius: 8
|
||||
property int samples: 15
|
||||
property int verticalOffset: 2
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ RowLayout {
|
|||
|
||||
Layout.preferredHeight: contact.height
|
||||
Layout.preferredWidth: 42
|
||||
color: '#434343'
|
||||
color: menu.isOpen() ? '#FE5E00' : '#434343'
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
|
|
@ -56,7 +56,7 @@ RowLayout {
|
|||
height: 100
|
||||
launcher: button
|
||||
relativeTo: button
|
||||
relativeX: button.width
|
||||
relativeX: button.width + 1
|
||||
width: 120
|
||||
|
||||
Rectangle {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue