Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362166 - [Theming] Let sub-widgets inherit styles and custom variants
Summary: [Theming] Let sub-widgets inherit styles and custom variants
Status: NEW
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.5   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 347755 370061 456667
  Show dependency tree
 
Reported: 2011-10-27 05:05 EDT by Ralf Sternberg CLA
Modified: 2015-01-07 06:20 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.