Bug 4719 - Background colour of views/editors (1GF6C8Y)
Summary: Background colour of views/editors (1GF6C8Y)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All Linux
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Veronika Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 5697
Blocks:
  Show dependency tree
 
Reported: 2001-10-11 14:21 EDT by Mike Wilson CLA
Modified: 2002-10-16 12:08 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wilson CLA 2001-10-11 14:21:51 EDT
Is there a reason why the background of views/editors is not set to something other than
grey?  In win32, the background of views/editors matches the background colour of the file
explorer.  In Linux, the background of the file explorer is white but this is ignored by Eclipse.

Having the same colour for the foreground and background of the views/editors gives Eclipse
a very sober and mundane look to it.

An example of this is when you have your editors close, you see an empty grey workspace.
Opening a file adds a window tab at the top and some text but the background remains the same.
It seems like the editor blends in with the background.



NOTES:

	McQ (12/06/2001 11:07:18 AM) -
		No action for June.

	McQ (26/06/2001 3:00:05 PM) -
		Currently compute the correct text background color, but never use
		it. See the initialize<widget name> methods in Display.

	GWG (10/1/2001 12:19:33 PM)
		We display colours according to the set system properties.
Comment 1 DJ Houghton CLA 2001-10-29 16:33:34 EST
PRODUCT VERSION:
122

Comment 2 Johan Walles CLA 2001-12-07 10:20:55 EST
On Linux, the system default is to not use Motif at all.  Thus, saying that the
text widget uses the "system set properties" may be correct from a technical
perspective, but is entirely off from a user perspective.  The correct solution
for this (Linux specific) bug is IMO to ditch Motif entirely.
Comment 3 Mike Wilson CLA 2001-12-10 11:20:45 EST
StyledText now uses the correct text color.
Comment 4 Mike Wilson CLA 2001-12-10 11:59:12 EST
fixed.
Comment 5 Mike Wilson CLA 2001-12-10 11:59:31 EST
no really.
Comment 6 Gary Shea CLA 2002-10-08 15:26:34 EDT
My apologies if I'm missing something here.  As of the last comment entry, 'McQ' declares the problem fixed, and the status is marked resolved/fixed, but I just installed 2.0.1 w/Motif on a Linux/KDE system (j2sdk1.4.1-fcs), and I still see a grey background where it 'should' be white.  I have changed all the backgrounds KDE gives me options to change (standard, window, and button), but none of them have any effect on how Eclipse is rendered.  I do see the expected total redraw, but the colors never change.
Comment 7 Mike Wilson CLA 2002-10-15 09:29:42 EDT
SN to investigate.
Comment 8 Steve Northover CLA 2002-10-15 12:40:14 EDT
Gary, a Motif program will never read the KDE color settings.  Neither will a 
GTK program.  KDE is Qt.

The only way to set the colors for Motif is to use .Xdefaults mechanism.  We 
are in the process of making a FAQ about this.  VI to close this PR when the 
FAQ is finished.
Comment 9 Veronika Irvine CLA 2002-10-16 12:08:42 EDT
FAQ now updated.
See:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-
home/faq.html#motiffontsandcolors

and:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-
home/faq.html#gtkfontsandcolors