devdeck
devdeck copied to clipboard
Conditional Icons
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.
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.