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

Bug 257001

Summary: [editor] support customization of background color in task editor
Product: z_Archived Reporter: Ari Seo <kujeah>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 CC: exnadler, greensopinion, mik.kersten, php6developer, steffen.pingel
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:
Bug Depends on: 299697    
Bug Blocks:    
Attachments:
Description Flags
pdt editor
none
in mylyn editor
none
Set highlight line color as black and forefroun color - white
none
Status whiteboard - too incorrect highlight lines! none

Description Ari Seo CLA 2008-11-30 19:12:35 EST
i use mylyn for TRAC system and write tasks in eclipse mylyn rich text editor. but i can't change background color at discription and comment area. now i use black background, white font color in each editor. in mylyn rich editor, use black background, but why does not use white color font? 
i can not change this configure anywhere.
Comment 1 Ari Seo CLA 2008-11-30 19:14:50 EST
*** Bug 257002 has been marked as a duplicate of this bug. ***
Comment 2 Steffen Pingel CLA 2008-11-30 20:13:00 EST
The task editor uses the default colors for Eclipse forms. Are you able to change the background color for other form based editors, e.g. PDE's plugin.xml editor?
Comment 3 Ari Seo CLA 2008-12-01 00:24:56 EST
Created attachment 119111 [details]
pdt editor

when i change current line highlight to white, i should see like this in pdt editor.
see line 73
Comment 4 Ari Seo CLA 2008-12-01 00:30:22 EST
Created attachment 119112 [details]
in mylyn editor

when i change current line highlight to black, i should see like this in mylyn task editor
i type 'aaa' in "New Comment" area
Comment 5 Ari Seo CLA 2008-12-01 00:32:57 EST
When i attempt changing eclipse form based editors, it is OK. i can change background color. 

I do like this

1. open preferences window
2. select General > Editors > Text Editors
3. change apperence color options 
   I change "Current line highlight" Black to White

When i do like this, i can see "white" current line highlight, "black" font color, but this action change all form based editor's current line highlight to white.
because i do not use plug-in development, i check this pdt editor and i can see changing current line highlight to white. this is ok, but it is not comfortable to see.

I attach two screenshots when i change current line highlight to white in pdt editor and when i change current line highlight to black in mylyn task editor.
Comment 6 Ari Seo CLA 2008-12-01 00:34:33 EST
maybe it does not mean background color, it means current line highlight color
Comment 7 Steffen Pingel CLA 2009-05-05 11:14:42 EDT
*** Bug 274939 has been marked as a duplicate of this bug. ***
Comment 8 Anton Danilchenko CLA 2009-05-05 14:41:31 EDT
Created attachment 134484 [details]
Set highlight line color as black and forefroun color - white

Background - work, but foreground - not work
Comment 9 Anton Danilchenko CLA 2009-05-05 14:45:06 EDT
Created attachment 134488 [details]
Status whiteboard - too incorrect highlight lines!

Maybe not use background and foreground colors and use only system defaults attributes?
Comment 10 Anton Danilchenko CLA 2009-05-20 10:24:22 EDT
How to change colorize in WikiEditor?

I select plain text editor and see default colorize (white background, black text). But in eclipse I configure background color on dark gray and text color - white.

This dark gray color I see in WikiText editor. But I see black text color (not white).

Please - fix this mistakes.
Thanks!

P.S. Please, change component from UI to WikiText.
Comment 11 Steffen Pingel CLA 2010-01-07 17:04:58 EST
*** Bug 298687 has been marked as a duplicate of this bug. ***
Comment 12 Eric Nadler CLA 2010-01-12 19:00:13 EST
In General > Editors > Text Editor I have an almost black as my background, yellow as my foreground and black as my background color.  This is how I like to edit my code.

In the Mylyn task editor, none of those values are used for the text.  I get a
white background with a black foreground (note that none of those are from my
settings).  For the current line, the task editor DOES use the general setting
for the highlight, but not for the foreground and background.  Therefore I get
unreadable text.

In my opinion, Mylyn should provide its own text editor settings for colors,
like the C++ mode does.  Otherwise, use all of the general settings or none of
them.  By using a portion of the general settings the user can get unreadable
text.  This is often a problem with people that want to use black backgrounds. 
I don't feel a user should change their settings for editing my code to satisfy Mylyn's editor.
Comment 13 Eric Nadler CLA 2010-01-12 19:12:55 EST
Since this issue results in unreadable text in Mylyn's default configuration for users with black text backgrounds, I think it should be reclassified as Minor instead of an enhancement.

At least to fix the bug Mylyn could be changed to not highlight the current line.  That would be a smaller change than supporting full customization.
Comment 14 Steffen Pingel CLA 2010-01-12 19:44:04 EST
Highlighting of the current line is a WikiText feature. As a work-around you can set the repository to use Plain text mode in the repository settings under Task Editor Settings.

David, would it be feasible to generally disable highlighting of the current line when WikiText is embedded in the task editor? I haven't seen other form based editors that do that and it is slightly inconsistent with the plain text mode.
Comment 15 David Green CLA 2010-01-13 01:20:58 EST
(In reply to comment #14)
> Highlighting of the current line is a WikiText feature. As a work-around you can
> set the repository to use Plain text mode in the repository settings under Task
> Editor Settings.

Current line highlight is controlled by an Eclipse preference under *Preferences -> General -> Editors -> Text Editors -> Highlight Current Line*.

> David, would it be feasible to generally disable highlighting of the current
> line when WikiText is embedded in the task editor? 

Yes (see preference above)

> I haven't seen other form based editors that do that and it is slightly inconsistent with the plain text
> mode.

It's the same as all text editors in Eclipse.  I'm open to discussion on this issue, however the issue may be moot since a preference is already available to control it.
Comment 16 Eric Nadler CLA 2010-01-19 11:59:03 EST
Sorry David, I don't think you understand the issue.

This is a problem for a user that uses a black background and wants to highlight their current line during their code editing.

In Mylyn this results in unreadable text by default.

Your solution is to disable highlighting of the current line for ALL modes.  Thus, you are asking the user to change their editor for the majority of their work (editing code) for Mylyn.

Again, if Mylyn would either follow ALL the text editor settings (background, foreground, highlighted line, etc.) or NONE of them (just force black text on a white background), then users would not need to modify their other editing modes.

I'm sorry if I'm not being clear, please let me know if you have additional questions.
Comment 17 David Green CLA 2010-01-19 12:09:44 EST
Eric, thanks for the clarification!  Sorry for not posting here: see bug 299697 where a separate preference is implemented for the task editor.
Comment 18 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn