| Summary: | [Theming] Let sub-widgets inherit styles and custom variants | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | RWT | Assignee: | 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 | ||
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.