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
55696a58
Commit
55696a58
authored
Sep 20, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix joystick coloring
parent
f1bd234d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+2
-0
VirtualJoystick.qml
src/FlightDisplay/VirtualJoystick.qml
+3
-3
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
55696a58
...
@@ -245,6 +245,8 @@ QGCView {
...
@@ -245,6 +245,8 @@ QGCView {
anchors.horizontalCenter
:
widgetsLoader
.
horizontalCenter
anchors.horizontalCenter
:
widgetsLoader
.
horizontalCenter
source
:
"
qrc:/qml/VirtualJoystick.qml
"
source
:
"
qrc:/qml/VirtualJoystick.qml
"
active
:
QGroundControl
.
virtualTabletJoystick
active
:
QGroundControl
.
virtualTabletJoystick
property
bool
useLightColors
:
root
.
isBackgroundDark
}
}
}
}
}
}
src/FlightDisplay/VirtualJoystick.qml
View file @
55696a58
...
@@ -17,7 +17,7 @@ import QGroundControl.Palette 1.0
...
@@ -17,7 +17,7 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
Vehicle
1.0
import
QGroundControl
.
Vehicle
1.0
Item
{
Item
{
QGCMapPalette
{
id
:
mapPal
;
lightColors
:
!
isBackgroundDark
}
//property bool useLightColors - Must be passed in from loaded
Timer
{
Timer
{
interval
:
40
// 25Hz, same as real joystick rate
interval
:
40
// 25Hz, same as real joystick rate
...
@@ -39,7 +39,7 @@ Item {
...
@@ -39,7 +39,7 @@ Item {
width
:
parent
.
height
width
:
parent
.
height
height
:
parent
.
height
height
:
parent
.
height
yAxisThrottle
:
true
yAxisThrottle
:
true
lightColors
:
!
isBackgroundDark
lightColors
:
useLightColors
}
}
JoystickThumbPad
{
JoystickThumbPad
{
...
@@ -50,6 +50,6 @@ Item {
...
@@ -50,6 +50,6 @@ Item {
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
width
:
parent
.
height
width
:
parent
.
height
height
:
parent
.
height
height
:
parent
.
height
lightColors
:
!
isBackgroundDark
lightColors
:
useLightColors
}
}
}
}
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