| Summary: | [Theming][Tree] Improve background-color/selection theming | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bbarzu, shashwat.work, steffen, tbuschto | ||||
| Version: | 1.3 | ||||||
| Target Milestone: | 1.4 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 309519 | ||||||
| Bug Blocks: | 320597 | ||||||
| Attachments: |
|
||||||
|
Description
Tim Buschtoens
291604 I had recently the requirement to transform a Table into a Tree. I had the surprise to discover that: - selection is supported only by the first (tree) column, even if SWT.FULL_SELECTION is used; - alternate-color (see TableItem:even, TableItem:even:hover) background is also only supported by the first column; I checked the "Themeable RWT Widgets" section of the rap-tooling-1.3.0-R-20100615-1734.zip help and have seen that the following CSS classes, properties, states or styles that I would need are supported by Table but not by Tree: Exist Does not exist Properties, Styles, States Table-Cell Tree-Cell <at all> Table-GridLine Tree-GridLine <at all> TableColumn TreeColumn color, font TableItem TreeItem :even, :hover Table-Checkbox Tree-Checkbox width Could you estimate if and when they would be available? In the mean time, I shall test the Patch from 291604, or the solution from 218420. (In reply to comment #2) Before trying out patches, you should rather wait for the new Tree (bug 309519) which will replace the current implementation. The change will appear in CVS in the next weeks and will solve all these issues. Created attachment 174831 [details]
Screenshots of the issue
The new Tree is now commited and supports FULL_SELECTION. However, the issue is still relevant when not using FULL_SELECTION, as demonstrated by this screenshot.
Fixed in CVS HEAD by using the selection state for the background-theming only when FULL_SELECTION is set, but always for the label-background. Therefore two different colors can be used for the same item at the same time. Regarding Comment#2: Those are all valid suggestions for enhancements, but mostly not directly related to this bug. You may open a seperate bug if you wish. (In reply to comment #5) > Regarding Comment#2: > Those are all valid suggestions for enhancements, but mostly not directly > related to this bug. You may open a seperate bug if you wish. Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=320987 |