Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 434134 - [CSS] Active part's 2nd line toolbar background color looks wrong
Summary: [CSS] Active part's 2nd line toolbar background color looks wrong
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P1 normal (vote)
Target Milestone: 4.4 RC2   Edit
Assignee: Daniel Rolka CLA
QA Contact: Daniel Rolka CLA
URL:
Whiteboard:
Keywords:
: 433902 (view as bug list)
Depends on: 433830
Blocks:
  Show dependency tree
 
Reported: 2014-05-05 12:55 EDT by Markus Keller CLA
Modified: 2014-05-22 16:18 EDT (History)
5 users (show)

See Also:
pwebster: review+
emoffatt: review+


Attachments
Picture of the bug (5.79 KB, image/png)
2014-05-15 09:26 EDT, Dani Megert 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 2014-05-05 12:55:49 EDT
Follow-up to bug 433830.

(In reply to Andrea Guarinoni from bug 433830 comment #17)
> Created attachment 242609 [details]
> I20140501-0200_themes_screenshots

The background color of the active Package Explorer view's toolbar on the 2nd line also looks bad on the Mac theme (like Dark, Windows 7, and Windows XP Blue in the screenshots).

Andrea suggested to leave the toolbars unstyled, and I guess that's the best solution for the E4 themes for now.
Comment 1 Daniel Rolka CLA 2014-05-06 02:38:50 EDT
(In reply to Markus Keller from comment #0)

> Andrea suggested to leave the toolbars unstyled, and I guess that's the best
> solution for the E4 themes for now.

All E4 related themes share the same CTabFolder renderer that contains changes from the Bug 430872. However the main issue here is connected to the workarounds that we have to use in order to bypass the Bug 433276 (additional SWT event listeners as well as the hacks in the CSS files).

I will try to prepare the reasonable fix for that keeping in mind the API freeze.

BTW. There is another issue reported by Paul that we can attach to the list - Bug 433902

Daniel
Comment 2 Dani Megert CLA 2014-05-06 05:23:39 EDT
I agree, this is a must fix for Luna.
Comment 3 Dani Megert CLA 2014-05-06 05:29:07 EDT
*** Bug 433902 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Rolka CLA 2014-05-13 10:23:47 EDT
I've pushed to Gerrit the first version of the patch - https://git.eclipse.org/r/#/c/26449/

There is one refreshing issue in the Dark theme during resizing the MPart (I'm working on it). The rest seems to work fine. 

We definitely need the patch for the Bug 433276 in order to fix it in the proper manner

Daniel
Comment 6 Dani Megert CLA 2014-05-14 05:20:45 EDT
Verified in I20140513-2000.
Comment 7 Dani Megert CLA 2014-05-14 05:23:53 EDT
Note though, that you now again use ACTIVE_TAB_BG_END to set the whole background of the part and  not just the 2nd line of the toolbar, i.e. bug 430872 is back.
Comment 8 Dani Megert CLA 2014-05-15 09:23:59 EDT
(In reply to Dani Megert from comment #6)
> Verified in I20140513-2000.

As soon as one puts parts side by side (vertically or horizontally), the bug is back. Not sure how this can happen?
Comment 9 Dani Megert CLA 2014-05-15 09:26:05 EDT
Created attachment 243128 [details]
Picture of the bug
Comment 10 Daniel Rolka CLA 2014-05-15 09:54:40 EDT
(In reply to Dani Megert from comment #9)
> Created attachment 243128 [details]
> Picture of the bug

It looks like another refreshing issue, I will take a look at it,
Daniel
Comment 11 Daniel Rolka CLA 2014-05-15 11:43:28 EDT
I've reverted all changes related to the Bug 430872 - https://git.eclipse.org/r/#/c/26684/

After applying the patch we will have working M6 version of the CTabRendering renderer

Daniel
Comment 12 Dani Megert CLA 2014-05-19 06:37:25 EDT
(In reply to Daniel Rolka from comment #11)
> I've reverted all changes related to the Bug 430872 -
> https://git.eclipse.org/r/#/c/26684/
> 
> After applying the patch we will have working M6 version of the
> CTabRendering renderer
> 
> Daniel

This fix brings back bug 433858 (cheese)!
Comment 13 Paul Webster CLA 2014-05-21 14:03:49 EDT
(In reply to Dani Megert from comment #9)
> Created attachment 243128 [details]
> Picture of the bug

Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d09eb7036e58a3e889764dad669cbf2af5ebde8c

Fixes the case where one view is on top of the other.

PW
Comment 14 Paul Webster CLA 2014-05-21 14:08:39 EDT
(In reply to Dani Megert from comment #12)
> 
> This fix brings back bug 433858 (cheese)!

Obviously we submitted a revised patch that fixed this problem :-)

PW
Comment 15 Dani Megert CLA 2014-05-22 16:18:43 EDT
Verified in I20140522-1330.