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

Bug 87244

Summary: [Dialogs] TitleAreaDialog error message and error image background display gray background
Product: [Eclipse Project] Platform Reporter: Brant Strausbaugh <stg_bl>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: billy.biggs, warren.paul
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen shot of the problem. none

Description Brant Strausbaugh CLA 2005-03-07 00:37:42 EST
When an error message is set on a TitleAreaDialog the background color for the
image and label areas is set to gray.  I believe the color should be set to the
same color as the banner background (in my case white).

To reproduce the problem open a New wizard (any one will do, but for this
example we can use the File > New > Class).  Enter a name for the file, but
before clicking the Finish button delete the name.  You should then recieve the
following error message 'Type name is empty'.  Notice the background is gray.

It seems to me the JFaceColors.getErrorBackground(messageLabel.getDisplay())
should return the same color as the               
JFaceColors.getBannerBackground(messageLabel.getDisplay());

I was able to fix this locally by creating a new TitleAreaDialog and changing
the following code in the setErrorMessage method.

errorMsgAreaBackground = JFaceColors.getErrorBackground(messageLabel.getDisplay());

to:

errorMsgAreaBackground = JFaceColors.getBannerBackground(messageLabel.getDisplay());
Comment 1 Billy Biggs CLA 2005-03-07 08:38:05 EST
This is actually by design (see bug 33524).  The idea is to change the
background colour to draw attention to the error, and to use the widget
background colour because it is the only other colour guarenteed to provide
contrast in all themes.

However, I am interested in changing this since it's generally considered to be
ugly, not very useful, and maybe if we make the error icon a bit bigger, we can
ensure the error does not go unnoticed.

*** This bug has been marked as a duplicate of 33524 ***
Comment 2 Warren Paul CLA 2006-07-10 14:37:51 EDT
I would like to see this changed as we've had several users report this as a bug.  I think the background should be one color, error or not, and the error icon should be made a little larger to make it stand out more.  Please ee the attached screen shot from our Nokia products.
Comment 3 Warren Paul CLA 2006-07-10 14:38:39 EDT
Created attachment 46032 [details]
Screen shot of the problem.