SerumColor / ColorizingDMD

GNU General Public License v2.0
12 stars 3 forks source link

[ENH] Change selected color with keystroke #54

Closed MrMan2k7 closed 1 year ago

MrMan2k7 commented 1 year ago

When in Colorizing mode, to change the color currently being used to paint, the only current method is to click on the box at the top of the screen.

To speed up coloring, I propose adding the ability to change the currently selected color by hitting a button on the keyboard (for example, 1 2 3 4). (Like changing weapons in a first person shooter!)

image

For example, hitting "4" would change the red box to be around the orange color and make orange the currently active painting color.

For 16 color roms, I see two possible solutions:

Solution 1 4X4 grid corresponds to the following:

1 2 3 4
Q W E R
A S D F
Z X C V

The drawback to this is that it removes many keyboard buttons for potential future functions.

Solution 2 1 2 3 4 corresponds to that column of the 4x4 grid. If a color in that column is not already selected, the topmost color in the column is selected. If a color in that column is already selected, then the selected color would move down a row (or loop back to the top if it is selected in the fourth row already).

For example, if the top left color is selected, and I want to select the bottom right color, I could hit 4 4 4 4.

Hopefully this makes sense!


I also foresee additional functionality when holding down a SHIFT, CTRL, or ALT key and a number, such as changing the currently selected Set or Dynamic Set.

zesinger commented 1 year ago

Done