Commit 33059cc2 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Popup/DropDownMenu): add `isOpen` function

parent 2dd1a681
...@@ -28,6 +28,10 @@ Rectangle { ...@@ -28,6 +28,10 @@ Rectangle {
signal menuClosed signal menuClosed
signal menuOpened signal menuOpened
function isOpen () {
return visible
}
function showMenu () { function showMenu () {
if (visible) { if (visible) {
return return
......
...@@ -11,7 +11,7 @@ QtObject { ...@@ -11,7 +11,7 @@ QtObject {
property QtObject shadow: QtObject { property QtObject shadow: QtObject {
property color color: Colors.f property color color: Colors.f
property int horizontalOffset: 0 property int horizontalOffset: 2
property int radius: 8 property int radius: 8
property int samples: 15 property int samples: 15
property int verticalOffset: 2 property int verticalOffset: 2
......
...@@ -31,7 +31,7 @@ RowLayout { ...@@ -31,7 +31,7 @@ RowLayout {
Layout.preferredHeight: contact.height Layout.preferredHeight: contact.height
Layout.preferredWidth: 42 Layout.preferredWidth: 42
color: '#434343' color: menu.isOpen() ? '#FE5E00' : '#434343'
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
...@@ -56,7 +56,7 @@ RowLayout { ...@@ -56,7 +56,7 @@ RowLayout {
height: 100 height: 100
launcher: button launcher: button
relativeTo: button relativeTo: button
relativeX: button.width relativeX: button.width + 1
width: 120 width: 120
Rectangle { Rectangle {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment