Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362166

Summary: [Theming] Let sub-widgets inherit styles and custom variants
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 347755, 370061, 456667    

Description Ralf Sternberg CLA 2011-10-27 05:05:15 EDT
In order to apply a completely different styling to widgets of a custom variant or a certain style, it is necessary to include also sub-widgets in this custom styling. For example:

Shell.special { ... }
Shell-Titlebar.special { ... }

ProgressBar[VERTICAL] { ... }
ProgressBar-Indicator[VERTICAL] { ... }

Currently, some sub-widgets silently inherit the styles and custom variants from their parent widget, others don't. To be consistent, we should agree on a general policy.
Styles and custom variants can only be applied to widgets, thus there is no chance of collisions. We cannot do the same thing for states, because sub-widgets have states of their own.
Since there are frequent use cases for this feature I would suggest to implement and document this policy: Styles and custom variants are inherited by sub-widgets, states are not.