Software version:
- Polyscope 3.6 and 3.8
- URCap SDK 1.3.0
Robot generation: G5
Steps to reproduce:
- Register a SwingToolbarService
- In the implementation of SwingToolbarContribution, add components to the JPanel in buildUI method.
Expected behavior:
Background of all components should be white.
Actual behavior:
Background of components is gray.
Observation:
By debugging this, I’ve found that PolyScope seems to set its default background color (white for G5) in UIManager after the toolbar service is initialized and after the toolbar view is created (in buildUI method). Therefore, when the toolbar view is created, its background color is gray because it use the default background color set in UIManager at this moment.
Workaround:
Set white background to all components of the JPanel in buildUI method.
