devdeck icon indicating copy to clipboard operation
devdeck copied to clipboard

Conditional Icons

Open DeastinY opened this issue 4 years ago • 1 comments

Hey there, first of all: Great Work! :tada: Very intuitive and nice to use!

I've set up CommandControls to start or focus various programs and want to have the button indicate whether a program is already open or not. Either by converting it to grayscale on the fly, or by using two separate images. Thought that might be a feature that could be useful in various applications.

DeastinY avatar Jun 08 '21 09:06 DeastinY

I also wondered about such a feature. The main question I would have is how to configure a 'generic' status polling mechanism.

  • Maybe one way could be to define a command which outputs a status code, and depending on status code, you could perhaps define a map of status code -> icon path for rendering.
  • Alternatively, perhaps this map could simply map status to colors, and expect a square single color SVG icon that's colored on the fly
  • I imagine polling delay should be configurable too.

nicdumz avatar Nov 02 '21 16:11 nicdumz