spritely icon indicating copy to clipboard operation
spritely copied to clipboard

indicator doesn't move on color picker

Open dfirebaugh opened this issue 6 years ago • 3 comments

When I right click a color on the canvas, the pen color changes. However, The indicator on the color picker does not change to the current color.

dfirebaugh avatar Oct 01 '20 05:10 dfirebaugh

Can I work on this?

DevanshCodes avatar Oct 01 '20 06:10 DevanshCodes

go for it

dfirebaugh avatar Oct 01 '20 15:10 dfirebaugh

I made some changes you might be interested in.

The indicators are now inside of the Context_t objects (rather than being a global).

So you would probably want to call this function and pass in the color_picker_ctx and the index that it should focus to. That may be the same as the current pen color.

https://github.com/dfirebaugh/spritely/blob/e2132ac5b49bce9483f18a2cc2d4f2a52a396ec7/src/context.h#L30

Let me know if you have any questions.

dfirebaugh avatar Oct 09 '20 05:10 dfirebaugh