diff options
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/MapWidgetContextMenu.qml | 23 | ||||
-rw-r--r-- | mobile-widgets/qml/icons/mapwidget-context-menu.png | bin | 0 -> 242 bytes |
2 files changed, 20 insertions, 3 deletions
diff --git a/mobile-widgets/qml/MapWidgetContextMenu.qml b/mobile-widgets/qml/MapWidgetContextMenu.qml index f26a700f7..47616de30 100644 --- a/mobile-widgets/qml/MapWidgetContextMenu.qml +++ b/mobile-widgets/qml/MapWidgetContextMenu.qml @@ -2,8 +2,25 @@ import QtQuick 2.7 Item { - Rectangle { - width: 100; height: width - color: "white" + Image { + id: contextMenuImage + source: "qrc:///mapwidget-context-menu" + + SequentialAnimation { + id:contextMenuImageAnimation + PropertyAnimation { + target: contextMenuImage; property: "scale"; from: 1.0; to: 0.8; duration: 80; + } + PropertyAnimation { + target: contextMenuImage; property: "scale"; from: 0.8; to: 1.0; duration: 60; + } + } + + MouseArea { + anchors.fill: parent + onClicked: { + contextMenuImageAnimation.restart() + } + } } } diff --git a/mobile-widgets/qml/icons/mapwidget-context-menu.png b/mobile-widgets/qml/icons/mapwidget-context-menu.png Binary files differnew file mode 100644 index 000000000..6ab7cf77d --- /dev/null +++ b/mobile-widgets/qml/icons/mapwidget-context-menu.png |