Best practice for command feedback?

What is the best practice for giving a user a text feedback when he/she performs an action via e.g. a push button? I would like to give both positive (“command is succesful”) and negative (“command has failed”) feedback. Currently I use setWarning(), but that it primarily designed for warning and error messages (or is it possible to customize icon and color?)

You should perform your capability listener as syn call (await listener( )). Then you can throw an error and this error message should appear for some seconds as red box.

Thanks @RonnyW , that’s of course a solution to get different “popups” for the negative and positive feedbacks.