Bug 537175

Summary: An entry in Colors and Fonts to control editor background color
Product: [Eclipse Project] Platform Reporter: Mickael Istria <mistria>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: akurtakov, daniel_megert, rgrunber
Version: 4.8Keywords: bugday, needinfo, usability
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=502581
Whiteboard:

Description Mickael Istria CLA 2018-07-19 05:55:19 EDT
As a user, I'd like to use less white on my IDE because it's too bright and would like to switch the background color for editor (or any widget by default) to a sand-like color.
I didn't find any entry in the preferences to change this.
The Colors and Fonts preference page should offer a way to change this color.
Comment 1 Mickael Istria CLA 2018-07-19 05:56:44 EDT
Is there a corresponding CSS symbol or class?
Is there already a JFace color definition id for this?
Comment 2 Roland Grunberg CLA 2018-07-19 11:22:58 EDT
I would guess that SWT.COLOR_WIDGET_BACKGROUND, and SWT.COLOR_LIST_BACKGROUND are the main constants that would need to be overriden, though there are likely others to make things look as nice as possible. This should work across operating systems though it seems like what you want is pretty much a different theme.

Individual themes achieve this by overriding AbstractTextEditor.Color* properties ( http://git.eclipse.org/c/gerrit/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.ui.themes/css/dark/e4-dark_preferencestyle.css#n19 )
Comment 3 Dani Megert CLA 2018-07-21 11:23:26 EDT
(In reply to Mickael Istria from comment #0)
> As a user, I'd like to use less white on my IDE because it's too bright and
> would like to switch the background color for editor (or any widget by
> default) to a sand-like color.
> I didn't find any entry in the preferences to change this.
> The Colors and Fonts preference page should offer a way to change this color.

So, why would you only change this for Eclipse and not at the OS level?
Comment 4 Dani Megert CLA 2018-07-21 11:27:08 EDT
(In reply to Dani Megert from comment #3)
> (In reply to Mickael Istria from comment #0)
> > As a user, I'd like to use less white on my IDE because it's too bright and
> > would like to switch the background color for editor (or any widget by
> > default) to a sand-like color.
> > I didn't find any entry in the preferences to change this.
> > The Colors and Fonts preference page should offer a way to change this color.
> 
> So, why would you only change this for Eclipse and not at the OS level?

At any rate, for textual editors you can change it on the 'Text Editors' preference page.
Comment 5 Mickael Istria CLA 2018-07-30 06:58:48 EDT
(In reply to Dani Megert from comment #4)
> At any rate, for textual editors you can change it on the 'Text Editors'
> preference page.

Ok, thanks.
I was more expecting this in the Colors and Fonts preference page.

> So, why would you only change this for Eclipse and not at the OS level?

For web browser, I prefer the default white background as most website look ugly with other color, or just override it anyway.
For other apps, I don't spend so much time reading characters, so I'm less annoyed and not enough to change my system-wide settings.