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
39b20521
Commit
39b20521
authored
Aug 22, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1788 from DonLakeFlyer/WarningColor
Warning color
parents
06c03467
6919af35
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
PowerComponent.qml
src/AutoPilotPlugins/PX4/PowerComponent.qml
+2
-2
QGCPalette.cc
src/QGCPalette.cc
+5
-0
QGCPalette.h
src/QGCPalette.h
+8
-3
VehicleSummary.qml
src/VehicleSetup/VehicleSummary.qml
+1
-1
MainToolBar.qml
src/ui/toolbar/MainToolBar.qml
+2
-0
No files found.
src/AutoPilotPlugins/PX4/PowerComponent.qml
View file @
39b20521
...
...
@@ -248,7 +248,7 @@ QGCView {
spacing
:
10
QGCLabel
{
color
:
"
yellow
"
color
:
palette
.
warningText
text
:
"
<font color=
\"
yellow
\"
>WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.</font>
"
}
...
...
@@ -279,7 +279,7 @@ QGCView {
spacing
:
10
QGCLabel
{
color
:
"
yellow
"
color
:
palette
.
warningText
text
:
"
<font color=
\"
yellow
\"
>WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.</font>
"
}
...
...
src/QGCPalette.cc
View file @
39b20521
...
...
@@ -53,6 +53,11 @@ QColor QGCPalette::_text[QGCPalette::_cThemes][QGCPalette::_cColorGroups] = {
{
QColor
(
0x58
,
0x58
,
0x58
),
QColor
(
0xFF
,
0xFF
,
0xFF
)
}
};
QColor
QGCPalette
::
_warningText
[
QGCPalette
::
_cThemes
][
QGCPalette
::
_cColorGroups
]
=
{
{
QColor
(
0xFF
,
0xFF
,
0x00
),
QColor
(
0xFF
,
0xFF
,
0x00
)
},
{
QColor
(
0xFF
,
0xFF
,
0x00
),
QColor
(
0xFF
,
0xFF
,
0x00
)
}
};
QColor
QGCPalette
::
_button
[
QGCPalette
::
_cThemes
][
QGCPalette
::
_cColorGroups
]
=
{
{
QColor
(
0x58
,
0x58
,
0x58
),
QColor
(
0x1b
,
0x6f
,
0xad
)
},
{
QColor
(
0x58
,
0x58
,
0x58
),
QColor
(
98
,
98
,
100
)
},
...
...
src/QGCPalette.h
View file @
39b20521
...
...
@@ -57,7 +57,10 @@ class QGCPalette : public QObject
/// Standard text color for label text
Q_PROPERTY
(
QColor
text
READ
text
NOTIFY
paletteChanged
)
/// Background color for buttons
/// Color for warning text
Q_PROPERTY
(
QColor
warningText
READ
warningText
NOTIFY
paletteChanged
)
/// Background color for buttons
Q_PROPERTY
(
QColor
button
READ
button
NOTIFY
paletteChanged
)
/// Text color for buttons
...
...
@@ -105,7 +108,8 @@ public:
QColor
windowShadeDark
(
void
)
const
{
return
_windowShadeDark
[
_theme
][
_colorGroupEnabled
?
1
:
0
];
}
QColor
text
(
void
)
const
{
return
_text
[
_theme
][
_colorGroupEnabled
?
1
:
0
];
}
QColor
warningText
(
void
)
const
{
return
_warningText
[
_theme
][
_colorGroupEnabled
?
1
:
0
];
}
QColor
button
(
void
)
const
{
return
_button
[
_theme
][
_colorGroupEnabled
?
1
:
0
];
}
QColor
buttonText
(
void
)
const
{
return
_buttonText
[
_theme
][
_colorGroupEnabled
?
1
:
0
];
}
QColor
buttonHighlight
(
void
)
const
{
return
_buttonHighlight
[
_theme
][
_colorGroupEnabled
?
1
:
0
];
}
...
...
@@ -134,7 +138,8 @@ private:
static
QColor
_windowShade
[
_cThemes
][
_cColorGroups
];
static
QColor
_windowShadeDark
[
_cThemes
][
_cColorGroups
];
static
QColor
_text
[
_cThemes
][
_cColorGroups
];
static
QColor
_warningText
[
_cThemes
][
_cColorGroups
];
static
QColor
_text
[
_cThemes
][
_cColorGroups
];
static
QColor
_button
[
_cThemes
][
_cColorGroups
];
static
QColor
_buttonText
[
_cThemes
][
_cColorGroups
];
...
...
src/VehicleSetup/VehicleSummary.qml
View file @
39b20521
...
...
@@ -58,7 +58,7 @@ Rectangle {
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
color
:
setupComplete
?
qgcPal
.
text
:
"
red
"
color
:
setupComplete
?
qgcPal
.
text
:
qgcPal
.
warningText
font.pixelSize
:
setupComplete
?
ScreenTools
.
defaultFontPixelSize
:
ScreenTools
.
mediumFontPixelSize
text
:
setupComplete
?
"
Below you will find a summary of the settings for your vehicle. To the left are the setup menus for each component.
"
:
...
...
src/ui/toolbar/MainToolBar.qml
View file @
39b20521
...
...
@@ -784,6 +784,7 @@ Rectangle {
id
:
toolBarMessage
anchors.fill
:
parent
wrapMode
:
Text
.
WordWrap
color
:
qgcPal
.
warningText
}
QGCButton
{
...
...
@@ -792,6 +793,7 @@ Rectangle {
anchors.topMargin
:
verticalMargins
anchors.top
:
parent
.
top
anchors.right
:
parent
.
right
primary
:
true
text
:
"
Close Message
"
onClicked
:
{
...
...
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