| Summary: | [Combo][Text][Spinner] Make selection background/foreground themeable | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Wen Ai <wen.ai> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | rsternberg | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Wen Ai
Created attachment 182299 [details]
screenshot for the combos
Currently the selection colors (background/foreground) are controlled by the OS theme. In Windows XP it is dark blue (like in your screenshot), in Windows 7, Ubuntu 10.04 it is light blue. Maybe we could support styling of this colors via CSS. Some initial information here: http://www.quirksmode.org/css/selection.html Here is another link for cross browser support of ::selection pseudo-selector http://reference.sitepoint.com/css/pseudoelement-selection Seems like IE does not support it at all and Firefox uses ::-moz-selection. It would be great, if rap could support this via CSS :-) Changed the title accordingly. And one more link - https://developer.mozilla.org/En/CSS/::selection IE9 will support the ::selection pseudo-selector. There is no way to fix this issue for IE < IE9. Great news that it works at least in some browsers. Could it be a problem if we introduce a :selected state for Text-like widgets that works only in newer browsers? We'd have to make this clear in the theming documentation. Missing support in IE would not render the application useless, worst thing that can happen that the selected text looks slightly different in some browsers (which it does already, depending on the OS theming). From my POV, this would be fine. |