|
|
|
@ -38,19 +38,32 @@ Item {
@@ -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" |
|
|
|
|