Styling button behavior #792
Submitted 1 year ago
After doing this exersize, I am able to set button backgrounds, but I am struggling to apply what I learned to do an actual styling in a real-life situation because the tutorial does not mention the current capabilities / restrictions of the styling.
For example, setting a Button background (as done in the tutorial for Composite) works well, but I cannot find any resource nor a hint in the css spy on how to set the style for a selected, hovered over, default button, or disabled button.
Please login to write a comment.
not all states are supported see https://wiki.eclipse.org/E4/CSS/SWT_Mapping#Pseudo_classes_which_can_be_used_in_CSS_to_style_SWT_widgets
IIRC some / most of the pseudo attributes are deactivate by default. If you let me know which one you would like to use I can check the corresponding CSS handler.
Best regards, Lars
Current behavior is documented in the exercises.