EmNudge / Spectrogram-Replicator

Educational Linguistics tool for exploring Spectrograms
https://spectrogram.emnudge.dev
6 stars 2 forks source link

Color Picker #9

Closed EmNudge closed 3 years ago

EmNudge commented 4 years ago

This issue is tracking the progress on the color for lines. Currently, a random color from a specific assortment is selected whenever a new line is created. This can often result in multiple lines having the same color. Sometimes this can be beneficial - if someone wants to show how 2 sine waves are closely correlated.

Regardless, a system for specifying the color of a line after creation would probably be preferable. As to not clutter the UI, this would probably be included in a custom right-click menu. I drew up a mockup design in figma: image

EmNudge commented 4 years ago

Created context menu prototype over here: https://svelte.dev/repl/3a33725c3adb4f57b46b597f9dade0c1?version=3.25.0

Will probably need to add an option for icons as I think it helps and/or looks nice. I could alternatively let the user provide some html in the slot which can be anything, from another menu to text with an icon.

EmNudge commented 3 years ago

Color picker has been added. Just the names of the colors exist for now and there are no menu icons.

These may be changed in the future.