How to add black outline to widget?

Is there no easy way to outline a widget element (like a segmented progress/health bar)?