diff --git a/qgcresources.qrc b/qgcresources.qrc index c35e1ce..3b4fb80 100644 --- a/qgcresources.qrc +++ b/qgcresources.qrc @@ -31,6 +31,7 @@ resources/LockClosed.svg resources/LockOpen.svg resources/notile.png + resources/NoVideoBackground.jpg resources/Pause.svg resources/pause-mission.svg resources/pencil.svg diff --git a/resources/NoVideoBackground.jpg b/resources/NoVideoBackground.jpg new file mode 100644 index 0000000..678aa14 Binary files /dev/null and b/resources/NoVideoBackground.jpg differ diff --git a/src/FlightDisplay/FlightDisplayViewVideo.qml b/src/FlightDisplay/FlightDisplayViewVideo.qml index d00b45b..05913d3 100644 --- a/src/FlightDisplay/FlightDisplayViewVideo.qml +++ b/src/FlightDisplay/FlightDisplayViewVideo.qml @@ -38,19 +38,32 @@ Item { property double _thermalHeightFactor: 0.85 //-- TODO - Rectangle { - id: noVideo - anchors.fill: parent - color: Qt.rgba(0,0,0,0.75) - visible: !(QGroundControl.videoManager.decoding) - QGCLabel { - text: QGroundControl.settingsManager.videoSettings.streamEnabled.rawValue ? qsTr("WAITING FOR VIDEO") : qsTr("VIDEO DISABLED") - font.family: ScreenTools.demiboldFontFamily - color: "white" - font.pointSize: useSmallFont ? ScreenTools.smallFontPointSize : ScreenTools.largeFontPointSize - anchors.centerIn: parent + Image { + id: noVideo + anchors.fill: parent + source: "/res/NoVideoBackground.jpg" + fillMode: Image.PreserveAspectCrop + visible: !(QGroundControl.videoManager.decoding) + + Rectangle { + anchors.centerIn: parent + width: noVideoLabel.contentWidth + ScreenTools.defaultFontPixelHeight + height: noVideoLabel.contentHeight + ScreenTools.defaultFontPixelHeight + radius: ScreenTools.defaultFontPixelWidth / 2 + color: "black" + opacity: 0.5 + } + + QGCLabel { + id: noVideoLabel + text: QGroundControl.settingsManager.videoSettings.streamEnabled.rawValue ? qsTr("WAITING FOR VIDEO") : qsTr("VIDEO DISABLED") + font.family: ScreenTools.demiboldFontFamily + color: "white" + font.pointSize: useSmallFont ? ScreenTools.smallFontPointSize : ScreenTools.largeFontPointSize + anchors.centerIn: parent + } } - } + Rectangle { anchors.fill: parent color: "black"