Community
Participate
Working Groups
Controls Demo has a tab called "Variants". When running the demo with the default theme this tab is useless as "special-red" and "special-blue" variants are missing from the default theme. I suggest to provide a contribution to the default theme with these custom variants defined.
This bug is blocked by 362166. By using variants, the widgets cannot be fully re-styled as subwidgets still use the default theme. One could only try to define a variant that somehow matches the default look and feel (for example, it's not possible to create a dark combobox, because Combo-Button will remain default-styled).
My idea was to extract and improve the "special-red" and "special-blue" related definitions from the old "tea" theme (org.eclipse.rap.demo\theme1\theme.css) and set them as a theme contribution to the default theme. Here is the segment from the "tea" theme: /* Custom variants */ .special-red { color: red; background-color: #ffaaaa; } .special-red:disabled { color: white; } .special-blue { color: blue; background-color: #aaaaff; } .special-blue:disabled { color: white; } Shell.special-red { border: 3px solid red; padding: 10px; } Shell.special-blue { border: 3px solid blue; padding: 10px; } Link-Hyperlink.special-red { color: #ffaaaa; } Link-Hyperlink.special-blue { color: #aaaaff; } Button[PUSH].special-red, Button[TOGGLE].special-red { border: 2px solid red; }
all right, I will use the custom variants from "tea" theme and just adjust the colors a bit.
Created attachment 210302 [details] adds theme contribution to default theme with properties for custom variants 'special-red' and 'special-blue'
Applied patch to CVS HEAD.