what's the compose idiomatic way to have the tray ...
# compose-desktop
e
what's the compose idiomatic way to have the tray icon changing based on some external condition? In my case that would be some IP reachability from a VPN, to visualize the VPN status (connected or not)
something like this?
a
The same way you’d have any other composable change in response to a state change. If the state is a snapshot (compose) state, just do an
if
on it. If it’s not a snapshot (compose) state, convert it to a snapshot state first via
produceState
e
could you point me to some example just to be sure?
e
thanks dear, I'll look into it