Unverified Commit 4b9b1038 authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #7633 from yasendimov/pr_custom-example-theme

PR Custom example theme
parents 1f283ad0 2c6efb2a
...@@ -40,7 +40,7 @@ Button { ...@@ -40,7 +40,7 @@ Button {
width: height width: height
sourceSize.height: parent.height sourceSize.height: parent.height
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
color: (mouseArea.pressed || button.checked) ? qgcPal.colorOrange : qgcPal.buttonText color: (mouseArea.pressed || button.checked) ? qgcPal.primaryButton : qgcPal.buttonText
source: button.icon.source source: button.icon.source
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
...@@ -48,7 +48,7 @@ Button { ...@@ -48,7 +48,7 @@ Button {
id: _label id: _label
visible: text !== "" visible: text !== ""
text: button.text text: button.text
color: (mouseArea.pressed || button.checked) ? qgcPal.colorOrange : qgcPal.buttonText color: (mouseArea.pressed || button.checked) ? qgcPal.primaryButton : qgcPal.buttonText
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
} }
......
...@@ -88,7 +88,7 @@ Item { ...@@ -88,7 +88,7 @@ Item {
id: backgroundRect id: backgroundRect
width: buttonsRow.width + (ScreenTools.defaultFontPixelWidth * 4) width: buttonsRow.width + (ScreenTools.defaultFontPixelWidth * 4)
height: buttonsRow.height + (ScreenTools.defaultFontPixelHeight) height: buttonsRow.height + (ScreenTools.defaultFontPixelHeight)
color: qgcPal.windowShade color: qgcPal.window
radius: height * 0.5 radius: height * 0.5
visible: _camera && _camera.modelName === "DSC-QX30" && QGroundControl.videoManager.hasThermal visible: _camera && _camera.modelName === "DSC-QX30" && QGroundControl.videoManager.hasThermal
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
...@@ -198,7 +198,7 @@ Item { ...@@ -198,7 +198,7 @@ Item {
id: cameraRect id: cameraRect
height: cameraCol.height height: cameraCol.height
width: cameraCol.width + (ScreenTools.defaultFontPixelWidth * 4) width: cameraCol.width + (ScreenTools.defaultFontPixelWidth * 4)
color: qgcPal.windowShade color: qgcPal.window
radius: ScreenTools.defaultFontPixelWidth * 0.5 radius: ScreenTools.defaultFontPixelWidth * 0.5
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
Column { Column {
...@@ -274,7 +274,7 @@ Item { ...@@ -274,7 +274,7 @@ Item {
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
mipmap: true mipmap: true
smooth: true smooth: true
color: qgcPal.windowShade color: qgcPal.window
visible: { visible: {
if(_cameraPhotoMode && !_cameraPhotoIdle && !_cameraElapsedMode) { if(_cameraPhotoMode && !_cameraPhotoIdle && !_cameraElapsedMode) {
return true return true
...@@ -426,7 +426,7 @@ Item { ...@@ -426,7 +426,7 @@ Item {
ZoomControl { ZoomControl {
id: zoomControl id: zoomControl
visible: _hasZoom visible: _hasZoom
mainColor: qgcPal.windowShade mainColor: qgcPal.window
contentColor: qgcPal.text contentColor: qgcPal.text
fontPointSize: ScreenTools.defaultFontPointSize * 1.25 fontPointSize: ScreenTools.defaultFontPointSize * 1.25
zoomLevelVisible: false zoomLevelVisible: false
......
...@@ -251,7 +251,7 @@ Item { ...@@ -251,7 +251,7 @@ Item {
//-- Vehicle Indicator //-- Vehicle Indicator
Rectangle { Rectangle {
id: vehicleIndicator id: vehicleIndicator
color: qgcPal.windowShade color: qgcPal.window
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
...@@ -460,7 +460,7 @@ Item { ...@@ -460,7 +460,7 @@ Item {
//-- Attitude Indicator //-- Attitude Indicator
Rectangle { Rectangle {
color: qgcPal.windowShade color: qgcPal.window
width: attitudeIndicator.width * 0.5 width: attitudeIndicator.width * 0.5
height: vehicleIndicator.height height: vehicleIndicator.height
visible: _showAttitude visible: _showAttitude
...@@ -581,7 +581,7 @@ Item { ...@@ -581,7 +581,7 @@ Item {
} }
QGCLabel { QGCLabel {
text: qsTr("The vehicle will automatically cancel the flight and return to land. Ensure a clear line of sight between transmitter and vehicle. Ensure the takeoff location is clear.") text: qsTr("The vehicle will automatically cancel the flight and return to land. Ensure a clear line of sight between transmitter and vehicle. Ensure the takeoff location is clear.")
width: connectionLostArmed.width * 0.75 width: connectionLostArmed.width * 0.75
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
color: qgcPal.alertText color: qgcPal.alertText
font.family: ScreenTools.demiboldFontFamily font.family: ScreenTools.demiboldFontFamily
......
This diff is collapsed.
...@@ -16,7 +16,7 @@ import QGroundControl.Controls 1.0 ...@@ -16,7 +16,7 @@ import QGroundControl.Controls 1.0
Rectangle { Rectangle {
id: _root id: _root
color: qgcPal.windowShade color: qgcPal.window
width: _idealWidth < repeater.contentWidth ? repeater.contentWidth : _idealWidth width: _idealWidth < repeater.contentWidth ? repeater.contentWidth : _idealWidth
height: toolStripColumn.height + (toolStripColumn.anchors.margins * 2) height: toolStripColumn.height + (toolStripColumn.anchors.margins * 2)
radius: ScreenTools.defaultFontPixelWidth / 2 radius: ScreenTools.defaultFontPixelWidth / 2
......
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