Skip to content

Color picker UX - allow swicth mode on canvas#19827

Merged
TurboGit merged 5 commits intomasterfrom
po/picker-switch
Feb 7, 2026
Merged

Color picker UX - allow swicth mode on canvas#19827
TurboGit merged 5 commits intomasterfrom
po/picker-switch

Conversation

@TurboGit
Copy link
Member

Allow Ctrl+Clik on canvas to switch between picker point/area.

Ensure that the point position is preserved by using a new
variable (pdrag) when dragging a box corner.

This rework also make it possible to switch between point/area for all pickers.

Also use routine to initialize the picker point/area default at a single place. Better than having
the same code duplicated in many places.

Rework the picker initialization that do not require anymore a check for some values as the
picker point/area are now always initialized at creation time.

Finally a new type dt_pickerpoint_t is introduce to store position of a
picker point (we already add dt_pickerbox_t for an area).

Closes #17887

Also introduce type dt_pickerpoint_t to store simple picker point.
Use the newly introduced routine to set the default which can
be controlled in a single routine.
Again to ensure the default is set at a single point.
Ensure that the point position is preserved by using a new
dt_pickerpoint_t variable (pdrag) when dragging a box corner.

This also make it possible to swicth between point/area for all
pickers.

Closes #17887
@TurboGit TurboGit added this to the 5.6 milestone Nov 27, 2025
@TurboGit TurboGit added priority: medium core features are degraded in a way that is still mostly usable, software stutters feature: redesign current features to rewrite scope: UI user interface and interactions documentation-pending a documentation work is required release notes: pending labels Nov 27, 2025
@TurboGit
Copy link
Member Author

@jenshannoschwalm : I finally got it :)

@TurboGit TurboGit merged commit f49f49c into master Feb 7, 2026
6 checks passed
@TurboGit TurboGit deleted the po/picker-switch branch February 7, 2026 09:12
@dtrtuser
Copy link

dtrtuser commented Feb 7, 2026

It seems that this is causing major issue with area selection in all modules I tested (exposure, color balance, white balance, negadoctor, agx, etc.). I am on Windows 11. I am no longer able to precisely select an area with the picker using click and drag. Selected area is now a random sized rectangle. I had to revert back to commit 456a4b7.

@TurboGit
Copy link
Member Author

TurboGit commented Feb 7, 2026

Can you please open an issue? TIA.

@dtrtuser
Copy link

dtrtuser commented Feb 7, 2026

Can you please open an issue? TIA.

Done: issue #20299

@elstoc elstoc added documentation-complete needed documentation is merged in dtdocs and removed documentation-pending a documentation work is required labels Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation-complete needed documentation is merged in dtdocs feature: redesign current features to rewrite priority: medium core features are degraded in a way that is still mostly usable, software stutters scope: UI user interface and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global color picker UX improvment

3 participants