From 757985bf2a22bd7684fce93131e0a5b21cdd6add Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 31 Jul 2017 21:43:19 +0200 Subject: Smaller buttons on map widget ... so they take up less space while still being clickable. Signed-off-by: Robert C. Helling --- mobile-widgets/qml/MapWidget.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mobile-widgets/qml') 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 } -- cgit v1.2.3-70-g09d2