tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Bring back Color display for Custom Classes

Open eishiya opened this issue 1 year ago • 2 comments

Back when Object Types were separate from Custom Properties, their Color was displayed next to the name, which made it easier to find specific Object Types in a list and offered a better preview of what Objects with that type would look like on a map. image image

Please bring that back :D It could also be a good visual way to indicate which Custom Types can be used as Classes of entities and which are only allowed as Property values - Property value-only classes wouldn't display their colour anywhere, including in the custom types editor's list.

eishiya avatar Aug 04 '22 13:08 eishiya

I've considered several ways in which the color could be brought back. Any feedback on these options would be welcome:

  • A colored circle aligned to the right, similar to how it was displayed previously.
  • Rendering the name as a badge, similar to how the object labels are rendered on the map.
  • Coloring the icon based on the class color.

bjorn avatar Aug 04 '22 14:08 bjorn

A coloured circle or rectangle aligned to the right would be best, I think, as it not only differentiates the colours, but also gives the user an idea of what the actual Objects look like. The shape should be large enough to have both the outline and the lower-opacity fill area. I think it would be fine if all the entries in the list were made slightly taller to accommodate the possible presence of these shapes. A rectangle would probably be the best for fitting both the outline and the interior.

Rendering the name as a badge can lead to legibility issues just like the Object names currently have with certain colours, and I think it would look garish.

Colouring the icon would be very compact, but wouldn't be exactly the right colour since the icon is a complex grayscale shape, and the icon would be hard to see with certain combinations of class and theme colours. It would also miss out on the benefit of showing what the objects look like on the map.

Edit: Perhaps the icons could also be coloured, allowing value-only colours to also mean something. And classes would have the coloured rectangle to further differentiate them.

eishiya avatar Aug 04 '22 18:08 eishiya

With the fill colour potentially becoming optional (#3312), these colour previews could be even more useful, since they could reflect whether the fill will be displayed.

eishiya avatar Feb 14 '23 21:02 eishiya