Community
Participate
Working Groups
Build Identifier: RAP 1.3.0 Labels with style SWT.SEPARATOR set don't seem to be themeable. Reproducible: Always Steps to Reproduce: 1. Create a label (SWT.SEPARATOR) 2. Create a theme extension 3. Add to the extension css: Label.separator { background-color: #9a9a9a; } 4. Set theme variant "separator" to the label The resulting separator has still a white background. When switching to a normal label (SWT.NONE), the theming works (it has a grey background).
Now it's possible to style the separator like this: Label[SEPARATOR] { background-color: #9a9a9a; } Custom variants are supported too. Fixed in CVS HEAD.
I think we should also be able to style the border of the separator line. This is *not* the border of the Label. You can test it in SWT with a Label with style SWT.SEPARATOR | SWT.BORDER - there are two different lines. I think it would make sense to introduce a sub-widget like "Label-SeparatorLine" for this. Since the separator line depends on the style flags SWT.SHADOW_*, I guess those should also be supported. If we do so, the default theme (as well as our custom themes) would have to be extended with separator styling.
New subelement Label-SeparatorLine added. It supports the following properties: border border-radius background-color background-image width and styles: SHADOW_IN SHADOW_OUT SHADOW_NONE