Skip to content

Use the new Popup api for the color picker button #7137

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

Merged
merged 3 commits into from
Jun 18, 2025
Merged

Conversation

lucasmerlin
Copy link
Collaborator

The color picker popup is now aligned to the bottom left edge (instead of the bottom right), but I think this makes more sense and is aligned with ComboBox etc. It also gets the new nice auto positioning.

Copy link

Preview available at https://egui-pr-preview.github.io/pr/7137-lucascolor-picker-popup
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@lucasmerlin lucasmerlin added feature New feature or request egui labels Jun 12, 2025
@lucasmerlin lucasmerlin changed the title Use the new Popup api in color picker Use the new Popup api for the color picker button Jun 12, 2025
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

The color picker closes on each click within it now. It should only close one escape and when clicking outside of it.

@lucasmerlin lucasmerlin requested a review from emilk June 16, 2025 06:41
@emilk
Copy link
Owner

emilk commented Jun 16, 2025

https://egui-pr-preview.github.io/pr/7137-lucascolor-picker-popup/ still closes when I click within the color picker

@lucasmerlin
Copy link
Collaborator Author

lucasmerlin commented Jun 18, 2025

egui-pr-preview.github.io/pr/7137-lucascolor-picker-popup still closes when I click within the color picker

That's so weird. It doesn't do it when I run it natively:

Screen.Recording.2025-06-18.at.09.14.44.mov

Maybe something went wrong when updating the preview app? A race condition?

Edit: I redeployed and now it works in the preview. Must've been a fluke.

@emilk emilk merged commit c8b844c into main Jun 18, 2025
47 checks passed
@emilk emilk deleted the lucas/color-picker-popup branch June 18, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update color picker buttons to the new popup api
3 participants