Unverified Commit 76619fd9 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #7643 from yasendimov/pr_custom-theme-fixes

Custom theme - Multi vehicle and Camera Shutter fixes
parents 4b15d5bc 60a4faa5
...@@ -47,7 +47,7 @@ Button { ...@@ -47,7 +47,7 @@ Button {
background: Rectangle { background: Rectangle {
anchors.fill: parent anchors.fill: parent
color: button.checked ? qgcPal.buttonHighlight : qgcPal.button color: button.checked ? qgcPal.window : qgcPal.button
radius: ScreenTools.defaultFontPixelWidth * 0.5 radius: ScreenTools.defaultFontPixelWidth * 0.5
} }
...@@ -55,16 +55,16 @@ Button { ...@@ -55,16 +55,16 @@ Button {
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
anchors.margins: ScreenTools.defaultFontPixelWidth anchors.margins: ScreenTools.defaultFontPixelWidth
anchors.verticalCenter: button.verticalCenter anchors.verticalCenter: button.verticalCenter
QGCColoredImage { // QGCColoredImage {
id: _icon // id: _icon
height: ScreenTools.defaultFontPixelHeight * 1.5 // height: ScreenTools.defaultFontPixelHeight * 1.5
width: height // width: height
sourceSize.height: parent.height // sourceSize.height: parent.height
fillMode: Image.PreserveAspectFit // fillMode: Image.PreserveAspectFit
color: button.checked ? qgcPal.buttonHighlightText : qgcPal.buttonText // color: button.checked ? qgcPal.buttonHighlightText : qgcPal.buttonText
source: "/qmlimages/PaperPlane.svg" // source: "/qmlimages/PaperPlane.svg"
anchors.verticalCenter: parent.verticalCenter // anchors.verticalCenter: parent.verticalCenter
} // }
Column { Column {
id: _infoCol id: _infoCol
spacing: ScreenTools.defaultFontPixelHeight * 0.25 spacing: ScreenTools.defaultFontPixelHeight * 0.25
......
...@@ -232,10 +232,10 @@ Item { ...@@ -232,10 +232,10 @@ Item {
height: ScreenTools.defaultFontPixelHeight * 4 height: ScreenTools.defaultFontPixelHeight * 4
radius: width * 0.5 radius: width * 0.5
border.color: qgcPal.buttonText border.color: qgcPal.buttonText
border.width: 2 border.width: 1
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
Rectangle { Rectangle {
width: parent.width * 0.95 width: parent.width * 0.85
height: width height: width
radius: width * 0.5 radius: width * 0.5
color: _cameraModeUndefined ? qgcPal.colorGrey : ( _cameraVideoMode ? qgcPal.colorRed : qgcPal.text ) color: _cameraModeUndefined ? qgcPal.colorGrey : ( _cameraVideoMode ? qgcPal.colorRed : qgcPal.text )
......
...@@ -256,7 +256,7 @@ Item { ...@@ -256,7 +256,7 @@ Item {
width: vehicleStatusGrid.width + (ScreenTools.defaultFontPixelWidth * 3) width: vehicleStatusGrid.width + (ScreenTools.defaultFontPixelWidth * 3)
height: vehicleStatusGrid.height + (ScreenTools.defaultFontPixelHeight * 1.5) height: vehicleStatusGrid.height + (ScreenTools.defaultFontPixelHeight * 1.5)
radius: 2 radius: 2
anchors.bottom: multiVehicleSelector.visible ? multiVehicleSelector.top : parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: ScreenTools.defaultFontPixelWidth anchors.bottomMargin: ScreenTools.defaultFontPixelWidth
anchors.right: attitudeIndicator.visible ? attitudeIndicator.left : parent.right anchors.right: attitudeIndicator.visible ? attitudeIndicator.left : parent.right
anchors.rightMargin: attitudeIndicator.visible ? -ScreenTools.defaultFontPixelWidth : ScreenTools.defaultFontPixelWidth anchors.rightMargin: attitudeIndicator.visible ? -ScreenTools.defaultFontPixelWidth : ScreenTools.defaultFontPixelWidth
...@@ -493,7 +493,7 @@ Item { ...@@ -493,7 +493,7 @@ Item {
spacing: ScreenTools.defaultFontPixelWidth spacing: ScreenTools.defaultFontPixelWidth
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: ScreenTools.defaultFontPixelWidth * 1.5 anchors.bottomMargin: ScreenTools.defaultFontPixelWidth * 1.5
anchors.right: parent.right anchors.right: vehicleIndicator.left
anchors.rightMargin: ScreenTools.defaultFontPixelWidth anchors.rightMargin: ScreenTools.defaultFontPixelWidth
visible: QGroundControl.multiVehicleManager.vehicles.count > 1 visible: QGroundControl.multiVehicleManager.vehicles.count > 1
Repeater { Repeater {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment