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

Bug 286902

Summary: [List] Make border for focused item themable
Product: [RT] RAP Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description RĂ¼diger Herrmann CLA 2009-08-18 03:01:09 EDT
The List widget displays a border around the focused list item.
In some cases it is desirable to change the appearance of this border or omit the border at all. Therefore it should be possible to adjust the appearance of focused items via theming.
Comment 1 Ivan Furnadjiev CLA 2009-08-20 08:55:02 EDT
Created attachment 145121 [details]
Proposed patch

This patch do the following:
1. Add and register a new class org.eclipse.swt.widgets.ListItem (subclass of qx.ui.form.ListItem) that:
	- defines new property "outline"
	- overrides handleStateChange() method
2. Define new css property "outline" for List-Item of type border ( List.theme.xml and List.default.css).
3. Apply the css value in the AppearanceBase.js "list-item".

The dafault value is "1px dotted". To remove the outline use "0px none". Outline color is supported too "1px dotted red". Note that the "outline" property is not supported by IE.
Ralf, Ruediger please revise.
Comment 2 Ivan Furnadjiev CLA 2009-08-24 07:04:36 EDT
The "outline" style property is not supported by IE and this border is missing in IE. We decided to omit the focused item outline border in all browsers. Changes are in CVS HEAD.