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

Bug 295463

Summary: SWT.COLOR_INFO_BACKGROUND points to ToolTip Background-Color
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Holger Staudacher CLA 2009-11-18 09:22:49 EST
Currently a PopupDialog get it's Background-Color from the ToolTip Theming. This is because this method in PopupDialog:

private Color getDefaultBackground() {
		return getShell().getDisplay()
				.getSystemColor(SWT.COLOR_INFO_BACKGROUND);
	}
	
The COLOR_INFO_BACKGROUND points to the ToolTip Background. So, if the ToolTip gets restyled then the background from some Dialogs change automatically. To solve this problem an additional display info color can be defined within Widget.default.css, see: 

Display {
  rwt-shadow-color: rgb( 167, 166, 170 );
  rwt-highlight-color: rgb( 255, 255, 255 );
  rwt-darkshadow-color: rgb( 133, 135, 140 );
  rwt-lightshadow-color: rgb( 220, 223, 228 );
  rwt-thinborder-color: rgb( 172, 168, 153 );
  rwt-selectionmarker-color: rgb( 254, 200, 60 );

  rwt-error-image: url( resource/widget/rap/dialog/error.png );
  rwt-information-image: url( resource/widget/rap/dialog/information.png );
  rwt-warning-image: url( resource/widget/rap/dialog/information.png );
  rwt-question-image: url( resource/widget/rap/dialog/question.png );
  rwt-warning-image: url( resource/widget/rap/dialog/warning.png );
  
  background-image: url( resource/widget/rap/display/bg.gif );
}

Maybe a separate color called rwt-info-color would be good. The SWT.COLOR_INFO_BACKGROUND should point to this color instead of pointing to the ToolTip background.
Comment 1 Ivan Furnadjiev CLA 2010-01-21 04:10:28 EST
"rwt-infobackground-color" property is added to Display color definitions. SWT.COLOR_INFO_BACKGROUND points to this color now. Changes are in CVS HEAD.