-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework app settings and vehicle config buttons
These now have consistent visuals
- Loading branch information
1 parent
b7d88ff
commit 3d82c8a
Showing
9 changed files
with
106 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/**************************************************************************** | ||
* | ||
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> | ||
* | ||
* QGroundControl is licensed according to the terms in the file | ||
* COPYING.md in the root of the source code directory. | ||
* | ||
****************************************************************************/ | ||
|
||
import QGroundControl.Controls | ||
|
||
SettingsButton { | ||
icon.color: setupComplete ? textColor : "red" | ||
|
||
property bool setupComplete: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/**************************************************************************** | ||
* | ||
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> | ||
* | ||
* QGroundControl is licensed according to the terms in the file | ||
* COPYING.md in the root of the source code directory. | ||
* | ||
****************************************************************************/ | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Layouts | ||
|
||
import QGroundControl | ||
import QGroundControl.Controls | ||
import QGroundControl.Palette | ||
import QGroundControl.ScreenTools | ||
|
||
Button { | ||
id: control | ||
padding: ScreenTools.defaultFontPixelWidth * 0.75 | ||
hoverEnabled: !ScreenTools.isMobile | ||
autoExclusive: true | ||
icon.color: textColor | ||
|
||
property color textColor: checked || pressed ? qgcPal.buttonHighlightText : qgcPal.buttonText | ||
|
||
QGCPalette { | ||
id: qgcPal | ||
colorGroupEnabled: control.enabled | ||
} | ||
|
||
background: Rectangle { | ||
color: qgcPal.buttonHighlight | ||
opacity: checked || pressed ? 1 : enabled && hovered ? .2 : 0 | ||
radius: ScreenTools.defaultFontPixelWidth / 2 | ||
} | ||
|
||
contentItem: RowLayout { | ||
spacing: ScreenTools.defaultFontPixelWidth | ||
|
||
QGCColoredImage { | ||
source: control.icon.source | ||
color: control.icon.color | ||
width: ScreenTools.defaultFontPixelHeight | ||
height: ScreenTools.defaultFontPixelHeight | ||
} | ||
|
||
QGCLabel { | ||
id: displayText | ||
Layout.fillWidth: true | ||
text: control.text | ||
color: control.textColor | ||
horizontalAlignment: QGCLabel.AlignLeft | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters