What makes icons fade when no item is selected

I notice that some of my button icons fade out when no item is selected, but others don't. What makes this happen as I quite like the effect?

image
image

It depends on the command they run, some commands cause buttons to be disabled automatically if no files are selected.

You can get the same effect on other buttons by adding @disablenosel to the top of the function.

1 Like