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
7c9bf8a3
Unverified
Commit
7c9bf8a3
authored
Feb 20, 2019
by
Gus Grubba
Committed by
GitHub
Feb 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7243 from mavlink/checkBox
Check box colors
parents
0d045b06
45ffe414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
QGCApplication.cc
src/QGCApplication.cc
+1
-0
QGCCheckBox.qml
src/QmlControls/QGCCheckBox.qml
+4
-4
No files found.
src/QGCApplication.cc
View file @
7c9bf8a3
...
@@ -181,6 +181,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
...
@@ -181,6 +181,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
#if defined (__macos__)
#if defined (__macos__)
locale
=
QLocale
(
locale
.
name
());
locale
=
QLocale
(
locale
.
name
());
#endif
#endif
qDebug
()
<<
"System reported locale:"
<<
locale
<<
locale
.
name
();
//-- Our localization
//-- Our localization
if
(
_QGCTranslator
.
load
(
locale
,
"qgc_"
,
""
,
":/localization"
))
if
(
_QGCTranslator
.
load
(
locale
,
"qgc_"
,
""
,
":/localization"
))
_app
->
installTranslator
(
&
_QGCTranslator
);
_app
->
installTranslator
(
&
_QGCTranslator
);
...
...
src/QmlControls/QGCCheckBox.qml
View file @
7c9bf8a3
...
@@ -36,14 +36,14 @@ CheckBox {
...
@@ -36,14 +36,14 @@ CheckBox {
implicitHeight
:
implicitWidth
implicitHeight
:
implicitWidth
Rectangle
{
Rectangle
{
anchors.fill
:
parent
anchors.fill
:
parent
color
:
_qgcPal
.
window
color
:
"
white
"
border.color
:
_
qgcPal
.
text
border.color
:
qgcPal
.
text
border.width
:
1
border.width
:
1
opacity
:
control
.
checkedState
===
Qt
.
PartiallyChecked
?
0.5
:
1
opacity
:
control
.
checkedState
===
Qt
.
PartiallyChecked
?
0.5
:
1
QGCColoredImage
{
QGCColoredImage
{
source
:
"
/qmlimages/checkbox-check.svg
"
source
:
"
/qmlimages/checkbox-check.svg
"
color
:
_qgcPal
.
text
color
:
"
black
"
opacity
:
control
.
checkedState
===
Qt
.
Checked
?
control
.
enabled
?
1
:
0.5
:
0
opacity
:
control
.
checkedState
===
Qt
.
Checked
?
(
control
.
enabled
?
1
:
0.5
)
:
0
mipmap
:
true
mipmap
:
true
fillMode
:
Image
.
PreserveAspectFit
fillMode
:
Image
.
PreserveAspectFit
width
:
parent
.
width
*
0.75
width
:
parent
.
width
*
0.75
...
...
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