Skip to content

Better light palette colors, fix Palette Test, adjust some controls palette usage for better visuals - #13701

Merged
DonLakeFlyer merged 3 commits into
masterfrom
PaletteChanges
Dec 5, 2025
Merged

Better light palette colors, fix Palette Test, adjust some controls palette usage for better visuals#13701
DonLakeFlyer merged 3 commits into
masterfrom
PaletteChanges

Conversation

@DonLakeFlyer

Copy link
Copy Markdown
Contributor

Light palette was pretty boring in just mostly black/white coloring. Adjust to be a bit more interesting:
Screenshot 2025-12-05 at 9 54 27 AM

Copilot AI review requested due to automatic review settings December 5, 2025 17:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the visual appearance of QGroundControl's light theme by replacing the boring black/white color scheme with a more vibrant blue accent color (#3A9BDC), and consolidates similar UI controls by removing QGCSwitch in favor of QGCCheckBoxSlider.

Key Changes:

  • Updated light palette to use blue (#3A9BDC) for borders, highlights, and interactive elements instead of pure black
  • Removed QGCSwitch component and replaced usages with QGCCheckBoxSlider
  • Fixed QmlTest.qml to use the correct palette instance (qgcPal) instead of a redundant palette property

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/QmlControls/QGCPalette.cc Updated light theme colors from black (#000000) to dark gray (#333333) for text and buttons, and added blue accent (#3A9BDC) for buttonBorder, buttonHighlight, and groupBorder
src/QmlControls/QGCRadioButton.qml Updated to use qgcPal instead of _qgcPal, changed hardcoded colors to use palette properties (button, buttonBorder, buttonHighlight), removed manual opacity handling
src/QmlControls/QGCCheckBox.qml Updated to use qgcPal instead of _qgcPal, changed hardcoded colors to use palette properties (buttonBorder, buttonHighlight), reordered properties for better organization
src/QmlControls/QGCCheckBoxSlider.qml Enhanced visual appearance by changing slider background to always use button color and making the knob use buttonHighlight when checked, added _sliderInset property for precise positioning
src/QmlControls/QGCSwitch.qml Deleted file - functionality replaced by QGCCheckBoxSlider
src/QmlControls/CMakeLists.txt Removed QGCSwitch.qml from the QML module build configuration
src/FlightMap/Widgets/PhotoVideoControl.qml Replaced two QGCSwitch instances with QGCCheckBoxSlider
src/UI/AppSettings/QmlTest.qml Fixed palette test by removing redundant palette property and using qgcPal instance consistently, added QGCCheckBoxSlider to the control preview grid

property color textColor: qgcPal.text
property bool _noText: text === ""

QGCPalette { id:qgcPal; colorGroupEnabled: enabled }

Copilot AI Dec 5, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after colon in property declaration. Should be id: qgcPal for consistency with other QML files in the codebase.

Suggested change
QGCPalette { id:qgcPal; colorGroupEnabled: enabled }
QGCPalette { id: qgcPal; colorGroupEnabled: enabled }

Copilot uses AI. Check for mistakes.
@DonLakeFlyer
DonLakeFlyer merged commit 857bbad into master Dec 5, 2025
27 checks passed
@DonLakeFlyer
DonLakeFlyer deleted the PaletteChanges branch December 5, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants