Bug 96235

Summary: [preference][syntax highlighting] Can't tell syntax coloring to use system defaults
Product: [Eclipse Project] JDT Reporter: ryenus ' <ryenus>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 401620    
Attachments:
Description Flags
black is not BLACK, but lime/green ;-)
none
"black" Java element got hidden. none

Description ryenus ' CLA 2005-05-21 20:02:40 EDT
As we can see the default color of "Text Font" is set to black,
which is also referred to by "Java Editor Text Font"

And I Java/Editor/Syntax Coloring, there are some elements' color
also default to black, 

In most cases, these is no problem, but when I switch my windows 
color scheme, such as lime text/black background, now in Eclipse
I can not see the ordinary/not colored text because they are also
black!

so I suggest the general "black" text color are just default to the same 
vaule of OS text color, maybe an color entry "automatic" is better.
Comment 1 Dani Megert CLA 2005-05-22 12:11:29 EDT
We use the (default) color provided by StyledText.
Comment 2 Steve Northover CLA 2005-05-24 14:23:41 EDT
This WORKSFORME outside of the Java editor.  When I change the default text 
color from black to dark blue, the .txt files in Eclipse change.
Comment 3 ryenus ' CLA 2005-05-24 19:37:21 EDT
Created attachment 21693 [details]
black is not BLACK, but lime/green ;-)

(In reply to comment #2)

Please take a look at my screenshot ;-)

we can see the default text color setting in 
Preferences > General > Appearance > Colors and Fonts > Basic > Text Font
The text color is "Black"!

but you can see it's lime/green in the text editor screenshot,
because I've changed my OS color scheme, (os win2k).

then how can you say that it work for you? 
at least the name "Black" is wrong! ;-)

(don't care about the font name, it's Chinese, means "NSimSun")
Comment 4 ryenus ' CLA 2005-05-24 19:59:29 EDT
Created attachment 21694 [details]
"black" Java element got hidden.

(In reply to comment #2)

Here is a screenshot of the Java editor:

and till now, I've only changed the basic text font/color,
nothing of Java editor or Java > Editor > Syntax Coloring is changed,
and I've changed the font setting of the invisible element,
they are "black" :(.
Comment 5 ryenus ' CLA 2005-05-24 20:05:11 EDT
(In reply to comment #4)

> and till now, I've only changed the basic text font/color,

sorry for any confusion, actually I mean I've only changed 
the font face in the basic > text font, the color is still
the default "black"

I've only change the color of font in windows theme.

Thanks
Roger

Comment 6 Dani Megert CLA 2005-05-25 05:26:53 EDT
The font color is always ignored.

For Text editors we have a preference under Editors > Text Editors allows to set
the colors to the system default (this is in fact Eclipse default).

The problem with the Java editor is that the current syntax coloring preferences
don't allow to specify 'System Default'.

For 3.2 we should add an option to each syntax highlighting which allows to
specify (using radio buttons):
(x) Use default text editor foreground color (with a link)
( ) Color: [color button]