Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4b9b1038
Unverified
Commit
4b9b1038
authored
Jul 28, 2019
by
Gus Grubba
Committed by
GitHub
Jul 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7633 from yasendimov/pr_custom-example-theme
PR Custom example theme
parents
1f283ad0
2c6efb2a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
52 deletions
+52
-52
CustomToolBarButton.qml
custom-example/res/Custom/Widgets/CustomToolBarButton.qml
+2
-2
CustomCameraControl.qml
custom-example/res/CustomCameraControl.qml
+4
-4
CustomFlyView.qml
custom-example/res/CustomFlyView.qml
+3
-3
CustomPlugin.cc
custom-example/src/CustomPlugin.cc
+42
-42
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+1
-1
No files found.
custom-example/res/Custom/Widgets/CustomToolBarButton.qml
View file @
4b9b1038
...
...
@@ -40,7 +40,7 @@ Button {
width
:
height
sourceSize.height
:
parent
.
height
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
anchors.verticalCenter
:
parent
.
verticalCenter
}
...
...
@@ -48,7 +48,7 @@ Button {
id
:
_label
visible
:
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
}
}
...
...
custom-example/res/CustomCameraControl.qml
View file @
4b9b1038
...
...
@@ -88,7 +88,7 @@ Item {
id
:
backgroundRect
width
:
buttonsRow
.
width
+
(
ScreenTools
.
defaultFontPixelWidth
*
4
)
height
:
buttonsRow
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
)
color
:
qgcPal
.
window
Shade
color
:
qgcPal
.
window
radius
:
height
*
0.5
visible
:
_camera
&&
_camera
.
modelName
===
"
DSC-QX30
"
&&
QGroundControl
.
videoManager
.
hasThermal
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
@@ -198,7 +198,7 @@ Item {
id
:
cameraRect
height
:
cameraCol
.
height
width
:
cameraCol
.
width
+
(
ScreenTools
.
defaultFontPixelWidth
*
4
)
color
:
qgcPal
.
window
Shade
color
:
qgcPal
.
window
radius
:
ScreenTools
.
defaultFontPixelWidth
*
0.5
anchors.horizontalCenter
:
parent
.
horizontalCenter
Column
{
...
...
@@ -274,7 +274,7 @@ Item {
fillMode
:
Image
.
PreserveAspectFit
mipmap
:
true
smooth
:
true
color
:
qgcPal
.
window
Shade
color
:
qgcPal
.
window
visible
:
{
if
(
_cameraPhotoMode
&&
!
_cameraPhotoIdle
&&
!
_cameraElapsedMode
)
{
return
true
...
...
@@ -426,7 +426,7 @@ Item {
ZoomControl
{
id
:
zoomControl
visible
:
_hasZoom
mainColor
:
qgcPal
.
window
Shade
mainColor
:
qgcPal
.
window
contentColor
:
qgcPal
.
text
fontPointSize
:
ScreenTools
.
defaultFontPointSize
*
1.25
zoomLevelVisible
:
false
...
...
custom-example/res/CustomFlyView.qml
View file @
4b9b1038
...
...
@@ -251,7 +251,7 @@ Item {
//-- Vehicle Indicator
Rectangle
{
id
:
vehicleIndicator
color
:
qgcPal
.
window
Shade
color
:
qgcPal
.
window
width
:
vehicleStatusGrid
.
width
+
(
ScreenTools
.
defaultFontPixelWidth
*
3
)
height
:
vehicleStatusGrid
.
height
+
(
ScreenTools
.
defaultFontPixelHeight
*
1.5
)
radius
:
2
...
...
@@ -460,7 +460,7 @@ Item {
//-- Attitude Indicator
Rectangle
{
color
:
qgcPal
.
window
Shade
color
:
qgcPal
.
window
width
:
attitudeIndicator
.
width
*
0.5
height
:
vehicleIndicator
.
height
visible
:
_showAttitude
...
...
@@ -581,7 +581,7 @@ Item {
}
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.
"
)
width
:
connectionLostArmed
.
width
*
0.75
width
:
connectionLostArmed
.
width
*
0.75
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
alertText
font.family
:
ScreenTools
.
demiboldFontFamily
...
...
custom-example/src/CustomPlugin.cc
View file @
4b9b1038
This diff is collapsed.
Click to expand it.
src/QmlControls/ToolStrip.qml
View file @
4b9b1038
...
...
@@ -16,7 +16,7 @@ import QGroundControl.Controls 1.0
Rectangle
{
id
:
_root
color
:
qgcPal
.
window
Shade
color
:
qgcPal
.
window
width
:
_idealWidth
<
repeater
.
contentWidth
?
repeater
.
contentWidth
:
_idealWidth
height
:
toolStripColumn
.
height
+
(
toolStripColumn
.
anchors
.
margins
*
2
)
radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment