diff --git a/src/FlightMap/Widgets/InstrumentSwipeView.qml b/src/FlightMap/Widgets/InstrumentSwipeView.qml index 0a31ffb250185896ce6e83985c29c811df727d7c..8a52ea4f80dd5bee002487035ebcd4ce73418b5d 100644 --- a/src/FlightMap/Widgets/InstrumentSwipeView.qml +++ b/src/FlightMap/Widgets/InstrumentSwipeView.qml @@ -67,7 +67,7 @@ Item { Rectangle { height: radius * 2 width: radius * 2 - radius: 2.5 + radius: ScreenTools.defaultFontPixelWidth / 3 border.color: textColor border.width: 1 color: _currentPage == index ? textColor : "transparent" @@ -75,6 +75,21 @@ Item { } } + MouseArea { + anchors.fill: parent + + onClicked: { + if (_currentPage == _maxPage) { + _currentPage = 0 + } else { + _currentPage++ + } + showPage(_currentPage) + } + } + + /* + Switching from swipe to click to change pages. Keeping swipe code for now in case of change back. MouseArea { anchors.fill: parent @@ -104,4 +119,5 @@ Item { showPage(_currentPage) } } + */ } diff --git a/src/FlightMap/Widgets/VibrationWidget.qml b/src/FlightMap/Widgets/VibrationWidget.qml index 96cba71db22ee1715b4952d607b075cb038e0ac7..e4ebade92fc7cad0e333e013d073495848e27451 100644 --- a/src/FlightMap/Widgets/VibrationWidget.qml +++ b/src/FlightMap/Widgets/VibrationWidget.qml @@ -157,7 +157,7 @@ QGCFlickable { Rectangle { anchors.fill: parent color: backgroundColor - opacity: 0.95 + opacity: 0.75 visible: _activeVehicle ? isNaN(_activeVehicle.vibration.xAxis.value) : false QGCLabel {