Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4900b606
Commit
4900b606
authored
Jul 18, 2019
by
Gus Grubba
Browse files
Forgot to customize TabBar and TabButton
parent
7321cef6
Changes
5
Hide whitespace changes
Inline
Side-by-side
qgroundcontrol.qrc
View file @
4900b606
...
...
@@ -125,6 +125,8 @@
<file alias="QGroundControl/Controls/QGCRadioButton.qml">src/QmlControls/QGCRadioButton.qml</file>
<file alias="QGroundControl/Controls/QGCSlider.qml">src/QmlControls/QGCSlider.qml</file>
<file alias="QGroundControl/Controls/QGCSwitch.qml">src/QmlControls/QGCSwitch.qml</file>
<file alias="QGroundControl/Controls/QGCTabBar.qml">src/QmlControls/QGCTabBar.qml</file>
<file alias="QGroundControl/Controls/QGCTabButton.qml">src/QmlControls/QGCTabButton.qml</file>
<file alias="QGroundControl/Controls/QGCTextField.qml">src/QmlControls/QGCTextField.qml</file>
<file alias="QGroundControl/Controls/QGCToolBarButton.qml">src/QmlControls/QGCToolBarButton.qml</file>
<file alias="QGroundControl/Controls/QGCViewDialog.qml">src/QmlControls/QGCViewDialog.qml</file>
...
...
src/QmlControls/QGCTabBar.qml
0 → 100644
View file @
4900b606
import
QtQuick
2.11
import
QtQuick
.
Controls
2.4
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
TabBar
{
background
:
Rectangle
{
color
:
qgcPal
.
window
}
}
src/QmlControls/QGCTabButton.qml
0 → 100644
View file @
4900b606
import
QtQuick
2.11
import
QtQuick
.
Controls
2.4
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
ScreenTools
1.0
TabButton
{
id
:
control
property
bool
_showHighlight
:
(
pressed
|
hovered
|
checked
)
background
:
Rectangle
{
color
:
_showHighlight
?
qgcPal
.
buttonHighlight
:
qgcPal
.
button
}
contentItem
:
QGCLabel
{
text
:
control
.
text
color
:
_showHighlight
?
qgcPal
.
buttonHighlightText
:
qgcPal
.
buttonText
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
elide
:
Text
.
ElideRight
}
}
src/QmlControls/QGroundControl/Controls/qmldir
View file @
4900b606
...
...
@@ -60,6 +60,8 @@ QGCPipable 1.0 QGCPipable.qml
QGCRadioButton 1.0 QGCRadioButton.qml
QGCSlider 1.0 QGCSlider.qml
QGCSwitch 1.0 QGCSwitch.qml
QGCTabBar 1.0 QGCTabBar.qml
QGCTabButton 1.0 QGCTabButton.qml
QGCTextField 1.0 QGCTextField.qml
QGCToolBarButton 1.0 QGCToolBarButton.qml
QGCViewDialog 1.0 QGCViewDialog.qml
...
...
src/VehicleSetup/JoystickConfig.qml
View file @
4900b606
...
...
@@ -58,20 +58,20 @@ SetupPage {
id
:
controller
}
TabBar
{
QGC
TabBar
{
id
:
bar
width
:
parent
.
width
anchors.top
:
parent
.
top
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
General
"
)
}
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
Button Assigment
"
)
}
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
Calibration
"
)
}
TabButton
{
QGC
TabButton
{
text
:
qsTr
(
"
Advanced
"
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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