foxnne / pixi

Pixel art editor made with Zig.
https://foxnne.github.io/pixi/
MIT License
773 stars 25 forks source link

Change of color selection automatically swaps current tool to pencil #24

Closed VisenDev closed 1 year ago

foxnne commented 1 year ago

I'm not opposed to changing this behavior, but the right-click color select changing the tool is intentional. If you select empty space (full transparency), the eraser tool is selected. I felt this made drawing much quicker as you can quickly sample a color, it automatically switches to the correct layer and pencil tool, and you can continue drawing. I realize this is different than other drawing programs however.

VisenDev commented 1 year ago

I felt this made drawing much quicker as you can quickly sample a color, it automatically switches to the correct layer and pencil too

This is fine, it was causing some trouble for me when I was trying to use the bucket tool to recolor an image. Everytime I selected a new color from the palette, it would change from bucket to pencil. That was my logic

Suggested behavior: If you are using a tool already that outputs colors, and you select a new color, you keep that tool selected. Otherwise go to pencil tool?

foxnne commented 1 year ago

Sounds great! I think that should be a pretty simple change.

BrookJeynes commented 1 year ago

Hey team, I'm gonna have a go at solving this issue.

foxnne commented 1 year ago

Brook's solution should close this issue :) let me know behavior is not as desired