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

Bug 537812

Summary: Heap status indicator renders with black text and black bar on macOS 10.14 (Mojave)
Product: [Eclipse Project] Platform Reporter: Torkild Resheim <torkildr>
Component: UIAssignee: Lakshmi P Shanmugam <lshanmug>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, hubert+eclipseorg, Lars.Vogel, lshanmug, ma.becker, p.belusky, rgrunber, tza
Version: 4.8   
Target Milestone: 4.10   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/132664
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=177d800acd913c62eb4c5f0143a8a9e0aea55c7f
Whiteboard:
Bug Depends on:    
Bug Blocks: 538976    
Attachments:
Description Flags
Screenshot demonstrating the issue
none
Black frames in compare view none

Description Torkild Resheim CLA 2018-08-09 04:22:51 EDT
Created attachment 275325 [details]
Screenshot demonstrating the issue

Found using Eclipse IDE for RCP and RAP Developers 4.8.
Comment 1 Dani Megert CLA 2018-08-09 05:33:48 EDT
Which theme are you using? Dark or light?

Is it a regression compared to 4.7?


On Windows it looks OK for both themes.
Comment 2 Torkild Resheim CLA 2018-08-09 06:14:50 EDT
(In reply to Dani Megert from comment #1)
> Which theme are you using? Dark or light?
> Is it a regression compared to 4.7?
> On Windows it looks OK for both themes.
I'm using the light theme and it's not a regression. It looks the same in 4.7. I'm guessing Apple has done some significant changes in order to support the dark theme and that the color picked up for the bar is simply wrong. It should probably be the "highlight" colour on macOS. I'll have a look at the code.
Comment 3 Torkild Resheim CLA 2018-08-09 06:21:51 EDT
(In reply to Torkild Resheim from comment #2)
> 4.7. I'm guessing Apple has done some significant changes in order to
> support the dark theme and that the color picked up for the bar is simply

In case it's not clear: macOS 10.14 comes with two themes, "dark" and "light". So, in this case, I used the macOS light theme and the Eclipse light theme.
Comment 4 Torkild Resheim CLA 2018-08-09 06:58:15 EDT
Created attachment 275330 [details]
Black frames in compare view

It appears the compare view is displaying a similar problem. The frames should be in some gray colour.
Comment 5 Torkild Resheim CLA 2018-08-09 08:41:07 EDT
See also bug #466275
Comment 6 Roland Grunberg CLA 2018-08-09 15:29:35 EDT
A good starting point would be Bug 537812, I addressed the issue for Linux. I think i restricted it in that way because finding a colour that looked good everywhere was too complicated.

Maybe looking through the SWT colour constants on MacOS may give a better idea of what might work.
Comment 7 Roland Grunberg CLA 2018-08-09 15:30:31 EDT
Typo. I meant Bug 533778.
Comment 8 Torkild Resheim CLA 2018-08-10 07:41:32 EDT
(In reply to Roland Grunberg from comment #7)
> Typo. I meant Bug 533778.
Thanks.

Also, note that the color does not change when switching to the macOS dark theme.
Comment 9 Tom Zauner CLA 2018-09-24 03:04:00 EDT
Same behaviour with Fedora 28, default Theme or custom Theme and new Eclipse 4.9. 
I've posted details and attachment in bug #381010. 

This might be somewhat related to the other bug.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=381010
Comment 10 Tom Zauner CLA 2018-09-24 03:05:29 EDT
Sorry, meant bug #435102 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=435102
Comment 11 Lakshmi P Shanmugam CLA 2018-11-19 03:56:22 EST
On Mac 10.14, SWT.COLOR_WIDGET_NORMAL_SHADOW returns black, causing the heap status to be rendered black. I think it's safer to change to a fixed Color as the system colors for the constants keep changing.
Comment 12 Lars Vogel CLA 2018-11-19 04:09:31 EST
Matthias, something for you?
Comment 13 Lakshmi P Shanmugam CLA 2018-11-19 04:33:43 EST
If no one is working on it yet, I can fix it for Mac.
Comment 14 Matthias Becker CLA 2018-11-19 04:45:38 EST
(In reply to Lakshmi Shanmugam from comment #13)
> If no one is working on it yet, I can fix it for Mac.

that would be great.
Comment 15 Lars Vogel CLA 2018-11-19 05:23:31 EST
(In reply to Lakshmi Shanmugam from comment #13)
> If no one is working on it yet, I can fix it for Mac.

Please use a fix color for all platforms, to avoid other color issues in other platform. I'm available to test on Linux in the light and dark theme.
Comment 16 Eclipse Genie CLA 2018-11-19 05:57:51 EST
New Gerrit change created: https://git.eclipse.org/r/132664
Comment 17 Lakshmi P Shanmugam CLA 2018-11-19 06:02:54 EST
(In reply to Eclipse Genie from comment #16)
> New Gerrit change created: https://git.eclipse.org/r/132664

In the patch, userMemCol uses RGB(160, 160, 160) which is the color picked on Windows and close to the color picked on Mac in 10.13 - RGB(159,159,159).

Lars, can you please test on Linux?
Comment 18 Lars Vogel CLA 2018-11-19 07:08:35 EST
(In reply to Lakshmi Shanmugam from comment #17)
> Lars, can you please test on Linux?

Looks good on Linux (light and dark theme).
Comment 19 Lakshmi P Shanmugam CLA 2018-11-19 07:18:56 EST
(In reply to Lars Vogel from comment #18)
> (In reply to Lakshmi Shanmugam from comment #17)
> > Lars, can you please test on Linux?
> 
> Looks good on Linux (light and dark theme).
Thanks!

Tested on Mac 10.14 and Windows, looks good on both.
Comment 21 Lakshmi P Shanmugam CLA 2018-11-20 03:59:55 EST
Verified with I20181119-2315 on Mac 10.14.