Bug 537175 - An entry in Colors and Fonts to control editor background color
Summary: An entry in Colors and Fonts to control editor background color
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, needinfo, usability
Depends on:
Blocks:
 
Reported: 2018-07-19 05:55 EDT by Mickael Istria CLA
Modified: 2018-07-30 06:58 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.