sossoldi icon indicating copy to clipboard operation
sossoldi copied to clipboard

hex code for colors

Open mikev-cw opened this issue 1 year ago • 1 comments

I noticed that color is an integers used as the index for a list of default colors. Wouldn't it be better to save the HEX code instead and convert it directly to the Color class? With the current solution, if we were to edit the list of colors, we'd have to change all indexes across the database.

(From a comment of @GBergatto on #85)

mikev-cw avatar May 04 '23 20:05 mikev-cw

I would agree, but now that we also have dark mode maybe it's easier to manage both types of colors with int, choosing the list based on the theme. I don't know if there could be a better solution for now.

lucaantonelli avatar Dec 29 '23 10:12 lucaantonelli