FigmaToCode icon indicating copy to clipboard operation
FigmaToCode copied to clipboard

[Feature request] Disable irrelevant UI options

Open davestewart opened this issue 1 year ago • 3 comments

Some of the UI options could be disabled if they are not relevant:

  • "Optimize Layout" – if there are no inferredAutoLayout nodes
  • "Round Values" and "Round Colors" – if no [] characters found in classes
  • "Custom Colors" – if no color variable used

davestewart avatar Jul 17 '24 00:07 davestewart

I think the way I would solve this is:

"current selection doesn't make use of color variables". with a check or X. Could be useful for people.

so the button is still enabled but the user can see it won't do anything on the current selection

bernaferrari avatar Jul 17 '24 00:07 bernaferrari

Also, could just dim the button.

davestewart avatar Jul 17 '24 00:07 davestewart

Yeah, dim could be nice way, I like it

bernaferrari avatar Jul 17 '24 01:07 bernaferrari