Universal Robots Forum

Implementing the URCaps Styling Guide

If we want to develop an URCap that is compatible with the Styling Guide, some specific colors, font sizes, buttons sizes, layouts,… must be used.

I wanted to know if pre-defined classes or object, for example for cards or colors (example UR_BLUE), exists of if we need to create this by ourselves?

I didn’t find this in the API Reference.

Generally you should create this by yourself.
But some of the styling you “get for free”, since the JPanel provided in buildUI will have some preset color schemes and layout management.
I.e. JButtons set with setEnabled() will automatically reflect the correct colors.
But most sizing and placement (columns) must be handled manually.

1 Like

Thank you for the quick reply.