diff --git a/qgcresources.qrc b/qgcresources.qrc index 9cd9d8e411b15641b380bd8cdb70d76e2fe29f08..7d47bf524be0809f231f1cbb0349ed98b526c9aa 100644 --- a/qgcresources.qrc +++ b/qgcresources.qrc @@ -101,16 +101,18 @@ - resources/Play.svg - resources/Pause.svg - resources/Stop.svg - resources/Antenna_T.svg resources/Antenna_RC.svg - resources/SplashScreen.png - resources/QGroundControlConnect.svg - resources/PowerButton.svg + resources/Antenna_T.svg resources/buttonLeft.svg resources/buttonRight.svg + resources/JoystickBezel.png + resources/JoystickBezelLight.png + resources/Pause.svg + resources/Play.svg + resources/PowerButton.svg + resources/QGroundControlConnect.svg + resources/SplashScreen.png + resources/Stop.svg resources/XDelete.svg resources/XDeleteBlack.svg diff --git a/resources/JoystickBezel.png b/resources/JoystickBezel.png new file mode 100644 index 0000000000000000000000000000000000000000..45a775cb633dc71e59528516daa329e7383715cd Binary files /dev/null and b/resources/JoystickBezel.png differ diff --git a/resources/JoystickBezelLight.png b/resources/JoystickBezelLight.png new file mode 100644 index 0000000000000000000000000000000000000000..c22d1d6c25a5d1bbb39576ecff319dbff03623d6 Binary files /dev/null and b/resources/JoystickBezelLight.png differ diff --git a/src/QmlControls/JoystickThumbPad.qml b/src/QmlControls/JoystickThumbPad.qml index e20bf7cef782f46b2c3696888a1caa17b91ba4b1..eaa61220db3b15ddbba1ff784ffcbf9da4c3aca7 100644 --- a/src/QmlControls/JoystickThumbPad.qml +++ b/src/QmlControls/JoystickThumbPad.qml @@ -4,12 +4,8 @@ import QtQuick.Controls 1.2 import QGroundControl.Palette 1.0 import QGroundControl.ScreenTools 1.0 -Rectangle { +Item { id: _joyRoot - radius: width / 2 - border.color: mapPal.thumbJoystick - border.width: ScreenTools.defaultFontPixelWidth * 0.25 - color: "transparent" property alias lightColors: mapPal.lightColors /// true: use light colors from QGCMapPalette for drawing property var stickPosition: Qt.point(0, 0) @@ -47,9 +43,11 @@ Rectangle { stickPosition = Qt.point(width / 2, width / 2) } - Column { - QGCLabel { text: xAxis } - QGCLabel { text: yAxis } + Image { + anchors.fill: parent + source: lightColors ? "/res/JoystickBezel.png" : "/res/JoystickBezelLight.png" + mipmap: true + smooth: true } Rectangle {