Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343032 - [Theming] Add gradient to Text and Text-like widgets
Summary: [Theming] Add gradient to Text and Text-like widgets
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.4 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 06:37 EDT by Tim Buschtoens CLA
Modified: 2011-04-17 14:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Buschtoens CLA 2011-04-16 06:37:50 EDT
Text, Spinner, ComboBox and DateTime text-fields are among the last widgets that have a really flat 2d-look. Ideally they would have an inset shadow, but those are not supported (yet) in RAP. The next best thing would be a gradient like this:

Text[BORDER][SINGLE] {
  background-image: gradient(
    linear, left top, left bottom,
    from( #dadada ),
    color-stop( 25%, #fcfcfc ),
    to( #fcfcfc )
  );
}
Comment 1 Tim Buschtoens CLA 2011-04-17 12:59:14 EDT
Fixed in CVS HEAD. All themes but classic now use gradients for text-widgets.