Fill Paint and Stroke Style

This may have been discussed before, but I would like to be able to access the Fill Paint pattern, foreground and background color properties dynamically on basic shapes (rectangle). Also would be nice to access Stroke Style line weight.

I’d like to display a conveyor as a striped rectangle and change the foreground color (pattern lines) based on whether the drive motor is running or not, the background based on the control state (auto/manual/tripped/estop) and increase the stroke line weight if the conveyor detail pop-up is displayed.