primer / prism

A tool for creating and maintaining cohesive, consistent, and accessible color palettes
https://primer.style/prism/
MIT License
667 stars 39 forks source link

App crashes when applying linked curves and non-existent values #57

Open IHIutch opened 1 year ago

IHIutch commented 1 year ago

Describe the bug App crashes when applying linked curves and invalid values

To Reproduce Steps to reproduce the behavior:

  1. Create a curve
  2. Apply it to your color
  3. Adjust curve via input spinner to push curve toward a non-existant value (out of bounds)

Expected behavior The app doesn't crash, causing me not to reach my color palette anymore. I shouldn't be able to use the spinner to create a non-existant color

Screenshots (Video) https://user-images.githubusercontent.com/20825047/192326341-56e3fa9b-a3f4-4d92-8de3-706a3e43708c.mp4

Additional context It seems like there might be a few things at work. App crashes when an invalid hex value is created but it also seems like the linked curves are messing with the input values.

It would also be nice if I could reach my palettes again. If I attempt to open the color palette that caused the app to crash, it crashes again

image