Bug 501250 - Problems view configuration dialog has wrong background colors with default theme
Summary: Problems view configuration dialog has wrong background colors with default t...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 4.7 M3   Edit
Assignee: Patrik Suzzi CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, investigate
Depends on:
Blocks: 501390
  Show dependency tree
 
Reported: 2016-09-12 09:18 EDT by Markus Keller CLA
Modified: 2016-09-16 08:34 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot (44.70 KB, image/png)
2016-09-12 09:18 EDT, Markus Keller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2016-09-12 09:18:56 EDT
Created attachment 264107 [details]
Screenshot

I20160906-0800

Problems view configuration dialog has wrong background colors, see screenshot. The text field and tree background needs to be white when the controls are enabled.

Seems to be another theming-induced bug. Does not happen when I switch to a classic theme.
Comment 1 Markus Keller CLA 2016-09-12 09:22:59 EDT
Happens already in 4.7 M1, but does not happen in 4.6.
Comment 2 Patrik Suzzi CLA 2016-09-13 18:39:51 EDT
I checked in org.eclipse.ui.themes\css\e4_default_win7.css. 

removing the following lines, the discussed background displays correctly. 

  /* We also have to force the background mode (the
   * Label/ToolBar in the heading should inherit it).
   */
   swt-background-mode: 'force';


I didn't see any side effect in Label/ToolBars, under Window 10. 

Hence I'm going to provide three changes, for Win, Linux, and Mac, and ask for review.
Comment 3 Eclipse Genie CLA 2016-09-13 18:46:02 EDT
New Gerrit change created: https://git.eclipse.org/r/81046
Comment 4 Patrik Suzzi CLA 2016-09-13 19:12:43 EDT
The change above is for windows. 

I verified the problem shows up also in Linux. 
see: http://imgur.com/CutX61y.png

Soon I'll submit the change for Linux, and ask for review.
Comment 5 Patrik Suzzi CLA 2016-09-13 19:47:11 EDT
I was wrong, the problem did not show also in Linux. 
However, for consistency, we should commit the same changes, also in Linux. 

Adding Lars in c/c as he might provide directions.
Comment 6 Patrik Suzzi CLA 2016-09-14 04:01:35 EDT
I tested the change https://git.eclipse.org/r/#/c/81046/ in differnet OSs. 
The change consists of removing the line below:

swt-background-mode: 'force';

Below you can see the results: 

Windows: 
without change: http://i.imgur.com/fqpTzEd.png
with the change: http://imgur.com/E8IHbyI.png
--> the change fixes the issue.

Linux (GTK3)
without change == with the change: http://i.imgur.com/CutX61y.png
--> the change does nothing.

Linux (GTK2)
without change: http://i.imgur.com/jdgWmSa.png
with the change: http://i.imgur.com/fsdtDOi.png
--> the change has partial effect, if applied, it looks like Mac Design (see below).

Mac
without change == with the change: http://i.imgur.com/4DUwQeo.png
--> the change does nothing.
Comment 7 Patrik Suzzi CLA 2016-09-14 04:25:27 EDT
Update: Please, disregard comments 5 and 6. 

After double checking the changes applied on all systems, I can tell the issue is fixed by the proposed change, consisting of removing the below line from CSS: 

swt-background-mode: 'force';

Please, look at the full visual comparison below, looking at BOTH the "Contains" Text AND the "Types" TreeView.  

COMPARISON:

Windows: 
without change: http://i.imgur.com/fqpTzEd.png
with the change: http://imgur.com/E8IHbyI.png
--> fixes both Text and TreeView (un-greyed). 

Linux (GTK3)
without change: http://i.imgur.com/CutX61y.png
with the change: http://i.imgur.com/NJhDCBC.png
--> fixes the "Contains" Text.

Linux (GTK2)
without change: http://i.imgur.com/jdgWmSa.png
with the change: http://i.imgur.com/fsdtDOi.png
--> Fixes the "Types" TreeView. 

Mac
without change: http://i.imgur.com/4DUwQeo.png
with the change: http://i.imgur.com/tkYzjQY.png
--> Fixes the "Contains" Text.

Hence, I'm going to submit and ask review for the three changes.
Comment 8 Eclipse Genie CLA 2016-09-14 04:30:46 EDT
New Gerrit change created: https://git.eclipse.org/r/81065
Comment 9 Eclipse Genie CLA 2016-09-14 04:38:00 EDT
New Gerrit change created: https://git.eclipse.org/r/81066
Comment 11 Patrik Suzzi CLA 2016-09-16 08:28:36 EDT
The above change fixes the background colors in Windows
Comment 13 Patrik Suzzi CLA 2016-09-16 08:31:53 EDT
The above applies to Linux GTK
Comment 15 Patrik Suzzi CLA 2016-09-16 08:33:26 EDT
And the last, above, is for Mac Cocoa