Rigging up do_color_sel() to offer immediate mode

The pick-a-color-from-the-canvas color selection feature
(the option in the color palette showing a pipette icon)
has been extended to support an immediate mode (return on
"mouse-up" event, don't show a "Back" button, and don't animate
the appearance of the color dialog at the bottom),
which will be used by a forthcoming feature that will offer
a keyboard shortcut to bring up this color selection option.
This commit is contained in:
Bill Kendrick 2022-01-26 00:20:14 -08:00 committed by Pere Pujal i Carabantes
parent a927f7287b
commit 076b15fd20
2 changed files with 112 additions and 61 deletions

View file

@ -70,6 +70,10 @@ http://www.tuxpaint.org/
* Show a "pipette"-shaped mouse pointer when selecting a
color from the color palette, or the picture.
* WIP Provide a keyboard shortcut for picking colors from
the canvas more quickly.
Closes https://sourceforge.net/p/tuxpaint/feature-requests/209/
* Localization Updates:
---------------------
* Albanian translation