d-bl / GroundForge

Bobbin Lace Diagrams : threads from pairs
https://d-bl.github.io/GroundForge/
GNU General Public License v3.0
12 stars 7 forks source link

More colors for thread highlights #197

Open jo-pol opened 2 years ago

jo-pol commented 2 years ago

second bullet from https://groups.io/g/GroundForge/message/364

Not enough colours for thread highlights. Would prefer at least 5 colours. Perhaps there should be a different way to revert to black (such as a control+click) rather than cycling through all colours.

jo-pol commented 2 years ago

Relevant code section: https://github.com/d-bl/GroundForge/blob/9bba012ece560dcf5d1830f32910df933be550dd/docs/js/tiles.js#L438-L451

So far I wasn't very lucky to prevent default browser actions on ctrl-click or shift-click. Solution are welcome. More colors might require another solution than the current if-then-else (represented with ?: expressions)

Perhaps select a color-blind friendly set of colors.

jo-pol commented 2 years ago

See also https://github.com/d-bl/GroundForge/issues/202#issuecomment-944974282