From be80c191a664e3ac4f37142ec018122cb1bd6896 Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Wed, 24 Feb 2016 13:16:07 -0500 Subject: [PATCH] Decreasing the opacity a bit. I've also changed it so it reacts to hover events (changing the opacity in the process). --- src/FlightMap/Widgets/QGCInstrumentWidget.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/FlightMap/Widgets/QGCInstrumentWidget.qml b/src/FlightMap/Widgets/QGCInstrumentWidget.qml index 0631a90d6..5c0065d81 100644 --- a/src/FlightMap/Widgets/QGCInstrumentWidget.qml +++ b/src/FlightMap/Widgets/QGCInstrumentWidget.qml @@ -78,12 +78,21 @@ Rectangle { } Image { + id: gearThingy anchors.bottom: attitude.bottom anchors.right: attitude.right source: "/res/gear.svg" mipmap: true + opacity: 0.5 width: attitude.width * 0.15 fillMode: Image.PreserveAspectFit + MouseArea { + anchors.fill: parent + hoverEnabled: true + onEntered: gearThingy.opacity = 0.85 + onExited: gearThingy.opacity = 0.5 + onClicked: _valuesWidget.showPicker() + } } Rectangle { -- 2.22.0