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

Bug 288701

Summary: [theming] provide additional possibilities to allow ribbon-like widgets
Product: [RT] RAP Reporter: Stefan Röck <stefan.roeck>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Ribbon like widgets using themed buttons only
none
Demo project none

Description Stefan Röck CLA 2009-09-05 16:25:11 EDT
I played around with the rounded corner and gradient stuff introduced with 1.3M1 and wondered if it was possible to create ribbon like widgets. Some things are already possible (see attached demo / screenshot), however, there are some limitations of the current theming infrastructure:
- Composite is not themable (need background-color and background-image)
- no rounded corners for Group
- the CSS parser doesn't seem to accept percent values as margin/padding.
- border-style "inset" doesn't work with rounded corners (no real 3D effect on button press)
- Group:hover not supported
Comment 1 Stefan Röck CLA 2009-09-05 16:26:14 EDT
Created attachment 146561 [details]
Ribbon like widgets using themed buttons only
Comment 2 Stefan Röck CLA 2009-09-05 16:27:39 EDT
Created attachment 146562 [details]
Demo project
Comment 3 Rüdiger Herrmann CLA 2009-09-07 07:02:27 EDT
(In reply to comment #0)
I like the screenshot :) Please see my comments below.

> I played around with the rounded corner and gradient stuff introduced with
> 1.3M1 and wondered if it was possible to create ribbon like widgets. Some
> things are already possible (see attached demo / screenshot), however, there
> are some limitations of the current theming infrastructure:
> - Composite is not themable (need background-color and background-image)
Please open a separate enhancement request

> - no rounded corners for Group
you need to specify this on the "Group-Frame"
If you would like to complan about the non-intuitive way to achieve this, please do so in a separate bug :)

> - the CSS parser doesn't seem to accept percent values as margin/padding.
Right, only absolute values in pixels are accepted

> - border-style "inset" doesn't work with rounded corners (no real 3D effect on
> button press)
Not sure right now whether this can ever work. However feel free to file a separate bugzilla.

> - Group:hover not supported
Please open a separate bugzilla and let us know what behavior you would expect during hover.