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

Bug 292817

Summary: [Theming] Allow gradients on buttons in Text-like widgets
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 292768, 295484    
Attachments:
Description Flags
Screenshot taken from the business theme drafts none

Description Ralf Sternberg CLA 2009-10-20 15:47:06 EDT
Gradients are specified on the CSS property background-image. The buttons of Text-like widgets (Combo-Button, Spinner-UpButton, DateTime-DropdownButton, etc.) already use this property for the icon that is shown on the button. Hence, there is no way of specifying both, a gradient and an icon. This is necessary to implement the business and fancy themes.
Comment 1 Ralf Sternberg CLA 2009-10-20 15:54:16 EDT
Created attachment 150022 [details]
Screenshot taken from the business theme drafts

This screenshot shows a combo box whose button has both, a gradient and an icon.
Comment 2 Ivan Furnadjiev CLA 2009-10-26 06:02:27 EDT
New CSS selectors are introduced for specifying the buttons icon image only:
- DateTime-UpButton-Icon, DateTime-DownButton-Icon, DateTime-DropDownButton-Icon
- Combo-Button-Icon
- CCombo-Button-Icon
- Spinner-UpButton-Icon, Spinner-DownButton-Icon
This allows to specify a background image/gradient on DateTime-UpButton, DateTime-DownButton, DateTime-DropDownButton, Combo-Button, CCombo-Button, Spinner-UpButton, Spinner-DownButton with "background-image" property.