diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-07-31 21:43:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-31 16:55:12 -0700 |
commit | 757985bf2a22bd7684fce93131e0a5b21cdd6add (patch) | |
tree | a60eb1f8fc8b29f6c31b306bedb5b9b77562c833 | |
parent | 855dd0d1aa4d29ce6c718e9536b3b02d23d4b4b0 (diff) | |
download | subsurface-757985bf2a22bd7684fce93131e0a5b21cdd6add.tar.gz |
Smaller buttons on map widget
... so they take up less space while still being clickable.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 9b96f78ad..28975ee12 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -203,6 +203,8 @@ Item { Image { id: toggleImage x: 10; y: x + width: 40 + height: 40 source: "qrc:///mapwidget-toggle-" + (map.activeMapType === map.mapType.SATELLITE ? "street" : "satellite") SequentialAnimation { id: toggleImageAnimation @@ -221,6 +223,8 @@ Item { Image { id: imageZoomIn x: 10 + (toggleImage.width - imageZoomIn.width) * 0.5; y: toggleImage.y + toggleImage.height + 10 + width: 20 + height: 20 source: "qrc:///mapwidget-zoom-in" SequentialAnimation { id: imageZoomInAnimation @@ -244,6 +248,8 @@ Item { id: imageZoomOut x: imageZoomIn.x; y: imageZoomIn.y + imageZoomIn.height + 10 source: "qrc:///mapwidget-zoom-out" + width: 20 + height: 20 SequentialAnimation { id: imageZoomOutAnimation PropertyAnimation { target: imageZoomOut; property: "scale"; from: 1.0; to: 0.8; duration: 120 } |