diff --git a/qgcresources.qrc b/qgcresources.qrc index 61a6be1..e6667ed 100644 --- a/qgcresources.qrc +++ b/qgcresources.qrc @@ -140,7 +140,8 @@ resources/buttonLeft.svg resources/buttonRight.svg resources/cancel.svg - resources/gear.svg + resources/gear-black.svg + resources/gear-white.svg resources/JoystickBezel.png resources/JoystickBezelLight.png resources/notile.png diff --git a/resources/gear.svg b/resources/gear-black.svg similarity index 100% rename from resources/gear.svg rename to resources/gear-black.svg diff --git a/resources/gear-white.svg b/resources/gear-white.svg new file mode 100644 index 0000000..94a5d55 --- /dev/null +++ b/resources/gear-white.svg @@ -0,0 +1,20 @@ + + + + + + diff --git a/src/FlightMap/Widgets/QGCInstrumentWidget.qml b/src/FlightMap/Widgets/QGCInstrumentWidget.qml index c2261ea..829a907 100644 --- a/src/FlightMap/Widgets/QGCInstrumentWidget.qml +++ b/src/FlightMap/Widgets/QGCInstrumentWidget.qml @@ -104,7 +104,7 @@ Item { id: gearThingy anchors.bottom: attitudeWidget.bottom anchors.right: attitudeWidget.right - source: "/res/gear.svg" + source: qgcPal.globalTheme == QGCPalette.Light ? "/res/gear-black.svg" : "/res/gear-white.svg" mipmap: true opacity: 0.5 width: attitudeWidget.width * 0.15