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
e52a8e54
Commit
e52a8e54
authored
Feb 25, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect QGCPalette and ui design
parent
0c388e55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
QGCComboBox.qml
src/QmlControls/QGCComboBox.qml
+31
-1
No files found.
src/QmlControls/QGCComboBox.qml
View file @
e52a8e54
import
QtQuick
2.2
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.2
import
QtQuick
.
Controls
.
Private
1.0
import
QGroundControl
.
Palette
1.0
ComboBox
{
property
var
__
palette
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
var
__
qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
bool
__showHighlight
:
pressed
|
hovered
style
:
ComboBoxStyle
{
textColor
:
__showHighlight
?
control
.
__qgcPal
.
buttonHighlightText
:
control
.
__qgcPal
.
buttonText
background
:
Item
{
implicitWidth
:
Math
.
round
(
TextSingleton
.
implicitHeight
*
4.5
)
implicitHeight
:
Math
.
max
(
25
,
Math
.
round
(
TextSingleton
.
implicitHeight
*
1.2
))
Rectangle
{
anchors.fill
:
parent
color
:
__showHighlight
?
control
.
__qgcPal
.
buttonHighlight
:
control
.
__qgcPal
.
button
}
Image
{
id
:
imageItem
visible
:
control
.
menu
!==
null
source
:
"
arrow-down.png
"
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.right
:
parent
.
right
anchors.rightMargin
:
dropDownButtonWidth
/
2
opacity
:
control
.
enabled
?
0.6
:
0.3
}
}
}
}
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