Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add QColorComboBox for picking single colors #194

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

tlambert03
Copy link
Member

@tlambert03 tlambert03 commented Sep 5, 2023

Qt has a QColorDialog, but it's too much if you just want to offer a fixed set of color options. This adds a ComboBox variant to select from a list of colors. It ended up taking a fair amount of qt-innards to make it attractive and useable.

cc @jni, I believe you wanted something like this at one point?

Screen Shot 2023-09-05 at 8 56 16 AM

@tlambert03 tlambert03 requested a review from Czaki September 5, 2023 12:55
@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Patch coverage: 88.48% and project coverage change: +0.05% 🎉

Comparison is base (60f4427) 87.30% compared to head (6fe480f) 87.35%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
+ Coverage   87.30%   87.35%   +0.05%     
==========================================
  Files          44       45       +1     
  Lines        3175     3338     +163     
==========================================
+ Hits         2772     2916     +144     
- Misses        403      422      +19     
Files Changed Coverage Δ
src/superqt/combobox/_color_combobox.py 88.27% <88.27%> (ø)
src/superqt/__init__.py 90.90% <100.00%> (ø)
src/superqt/combobox/__init__.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tlambert03 tlambert03 merged commit 658995a into pyapp-kit:main Sep 11, 2023
42 checks passed
@tlambert03 tlambert03 deleted the qcolor branch September 11, 2023 12:56
@tlambert03 tlambert03 added the enhancement New feature or request label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant