Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions custom-example/src/CustomPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ void CustomPlugin::paletteOverride(const QString &colorName, QGCPalette::Palette
colorInfo[QGCPalette::Dark][QGCPalette::ColorGroupDisabled] = QColor("#000000");
colorInfo[QGCPalette::Light][QGCPalette::ColorGroupEnabled] = QColor("#212529");
colorInfo[QGCPalette::Light][QGCPalette::ColorGroupDisabled] = QColor("#000000");
} else if (colorName == QStringLiteral("brandingPurple")) {
} else if (colorName == QStringLiteral("brandPrimary")) {
colorInfo[QGCPalette::Dark][QGCPalette::ColorGroupEnabled] = QColor("#4a2c6d");
colorInfo[QGCPalette::Dark][QGCPalette::ColorGroupDisabled] = QColor("#4a2c6d");
colorInfo[QGCPalette::Light][QGCPalette::ColorGroupEnabled] = QColor("#4a2c6d");
colorInfo[QGCPalette::Light][QGCPalette::ColorGroupDisabled] = QColor("#4a2c6d");
} else if (colorName == QStringLiteral("brandingBlue")) {
} else if (colorName == QStringLiteral("brandAccent")) {
colorInfo[QGCPalette::Dark][QGCPalette::ColorGroupEnabled] = QColor("#6045c5");
colorInfo[QGCPalette::Dark][QGCPalette::ColorGroupDisabled] = QColor("#48d6ff");
colorInfo[QGCPalette::Light][QGCPalette::ColorGroupEnabled] = QColor("#6045c5");
Expand Down
2 changes: 1 addition & 1 deletion src/FactSystem/FactControls/FactValueSlider.qml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Rectangle {
width: _itemWidth + (_borderWidth * 2)
height: _itemHeight + (_borderWidth * 2)
border.width: _borderWidth
border.color: qgcPal.brandingBlue
border.color: qgcPal.brandAccent
color: "transparent"

readonly property int _borderWidth: 3
Expand Down
4 changes: 2 additions & 2 deletions src/QmlControls/QGCPalette.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ void QGCPalette::_buildMap()

// Colors not affecting by theming
// Disabled Enabled
DECLARE_QGC_NONTHEMED_COLOR(brandingPurple, "#4A2C6D", "#4A2C6D")
DECLARE_QGC_NONTHEMED_COLOR(brandingBlue, "#48D6FF", "#6045c5")
DECLARE_QGC_NONTHEMED_COLOR(brandPrimary, "#4A2C6D", "#4A2C6D")
DECLARE_QGC_NONTHEMED_COLOR(brandAccent, "#48D6FF", "#6045c5")
DECLARE_QGC_NONTHEMED_COLOR(toolStripFGColor, "#707070", "#ffffff")
DECLARE_QGC_NONTHEMED_COLOR(photoCaptureButtonColor, "#707070", "#ffffff")
DECLARE_QGC_NONTHEMED_COLOR(videoCaptureButtonColor, "#f89a9e", "#f32836")
Expand Down
4 changes: 2 additions & 2 deletions src/QmlControls/QGCPalette.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ class QGCPalette : public QObject
DEFINE_QGC_COLOR(mapWidgetBorderLight, setMapWidgetBorderLight)
DEFINE_QGC_COLOR(mapWidgetBorderDark, setMapWidgetBorderDark)
DEFINE_QGC_COLOR(mapMissionTrajectory, setMapMissionTrajectory)
DEFINE_QGC_COLOR(brandingPurple, setBrandingPurple)
DEFINE_QGC_COLOR(brandingBlue, setBrandingBlue)
DEFINE_QGC_COLOR(brandPrimary, setBrandPrimary)
DEFINE_QGC_COLOR(brandAccent, setBrandAccent)
DEFINE_QGC_COLOR(colorGreen, setColorGreen)
DEFINE_QGC_COLOR(colorYellow, setColorYellow)
DEFINE_QGC_COLOR(colorYellowGreen, setColorYellowGreen)
Expand Down
2 changes: 1 addition & 1 deletion src/Toolbar/FlyViewToolBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Item {

property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
property bool _communicationLost: _activeVehicle ? _activeVehicle.vehicleLinkManager.communicationLost : false
property color _mainStatusBGColor: qgcPal.brandingPurple
property color _mainStatusBGColor: qgcPal.brandPrimary
property real _leftRightMargin: ScreenTools.defaultFontPixelWidth * 0.75
property var _guidedController: globals.guidedControllerFlyView

Expand Down
2 changes: 1 addition & 1 deletion src/Toolbar/MainStatusIndicator.qml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ RowLayout {
}
}
} else {
_mainStatusBGColor = qgcPal.brandingPurple
_mainStatusBGColor = qgcPal.brandPrimary
return mainStatusLabel._disconnectedText
}
}
Expand Down
Loading