Bug 513978 (CTabFolderBlackBg) - Remove hard-coded color in CTabFolder chevron dropdown list and use standard colors
Summary: Remove hard-coded color in CTabFolder chevron dropdown list and use standard ...
Status: RESOLVED FIXED
Alias: CTabFolderBlackBg
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.8 M7   Edit
Assignee: Roland Grunberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: ColorInfoApi
Blocks: LinuxIDEColorTracker
  Show dependency tree
 
Reported: 2017-03-21 06:21 EDT by Lars Vogel CLA
Modified: 2018-03-19 11:43 EDT (History)
8 users (show)

See Also:


Attachments
Before the change (22.60 KB, image/png)
2017-03-21 06:27 EDT, Lars Vogel CLA
no flags Details
After the change (16.88 KB, image/png)
2017-03-21 06:28 EDT, Lars Vogel CLA
no flags Details
After the change on RHEL 7.2 (5.03 KB, image/png)
2017-03-21 12:29 EDT, Andrey Loskutov CLA
no flags Details
After the change (142.81 KB, image/png)
2018-03-19 11:35 EDT, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2017-03-21 06:21:22 EDT
AbstractTableInformationControl contains some hard-coded info colors setting which makes the popup looks really bad on Linux in the light theme.

I suggest to remove that color setting and re-use the standard shell style.
Comment 1 Lars Vogel CLA 2017-03-21 06:27:37 EDT
Created attachment 267369 [details]
Before the change
Comment 2 Lars Vogel CLA 2017-03-21 06:28:07 EDT
Created attachment 267370 [details]
After the change
Comment 3 Eclipse Genie CLA 2017-03-21 06:30:47 EDT
New Gerrit change created: https://git.eclipse.org/r/93489
Comment 4 Lars Vogel CLA 2017-03-21 06:36:04 EDT
Adding Leo, Patric and Andrey as they worked on styling issues in the past. (Andrey actually work on not using styling ;-))

Leo or Patric, could you test the patch on Windows?
Comment 5 Andrey Loskutov CLA 2017-03-21 12:29:52 EDT
Created attachment 267386 [details]
After the change on RHEL 7.2

Lars, I like the idea but don't like the implementation :-)
I've tried the patch with both default GTK theme and without themes, it looks ugly because the table seem to use gray color for background by default. 

So please change the patch: revert to the old state (except SWT.COLOR_INFO* constants) and let it use some matching color definition, may be via PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getColorRegistry().get...
Comment 6 Leo Ufimtsev CLA 2017-03-22 10:22:35 EDT
The color business has been on my todo list for a while. 
I'm still working on fixing up remaining webkit2 port business: Bug 441568 as webkit1 is removed in Fedora 26. But Once done with webkit2 port I've been meaning to finish off the color business that I started a while back. ~Eta this summer ish?.
Comment 7 Lars Vogel CLA 2017-05-03 04:56:45 EDT
Leo, is this something you can take?
Comment 8 Leo Ufimtsev CLA 2017-05-03 11:20:58 EDT
Thank you for bringing this to my attention (again ^_^).

I'll patch this up once the HOVER_ api patch is finished (added dependent) and we'll have "INFORMATION_" color available.
Using that color will ensure it will look nice on regular themes and gets styled well on dark themes.

Please feel free to CC me on other issues of that sort.
Comment 9 Leo Ufimtsev CLA 2017-10-12 11:50:01 EDT
Dependent merged. I'll need to look into this. Currently pending till I finish webkit2 port.
Comment 10 Leo Ufimtsev CLA 2018-02-06 15:42:01 EST
Roland will take a look.
Comment 11 Dani Megert CLA 2018-03-16 11:19:06 EDT
Please provide steps on how to tests/verify this.
Comment 12 Roland Grunberg CLA 2018-03-16 12:49:24 EDT
Steps to reproduce :

1) While using the light theme, on Linux, open any 2 source/class files (eg. java.lang.Object, and java.lang.Exception) in the JDT Perspective.
2) Reduce the width of the editor area until there is insufficient room to display the tabs indicating the source/classes opened (eg. Object.class, Exception.class)
3) One of the 2 visible tabs will be replaced by a '>>' symbol with a '1' as a subscript. Click on this symbol to reveal a dropdown list containing the other opened source/class file.

Note that the colour of the dropdown's background is black, on the light theme.
Comment 13 Dani Megert CLA 2018-03-19 10:50:36 EDT
(In reply to Roland Grunberg from comment #12)
> Steps to reproduce :
> 
> 1) While using the light theme, on Linux, open any 2 source/class files (eg.
> java.lang.Object, and java.lang.Exception) in the JDT Perspective.
> 2) Reduce the width of the editor area until there is insufficient room to
> display the tabs indicating the source/classes opened (eg. Object.class,
> Exception.class)
> 3) One of the 2 visible tabs will be replaced by a '>>' symbol with a '1' as
> a subscript. Click on this symbol to reveal a dropdown list containing the
> other opened source/class file.
> 
> Note that the colour of the dropdown's background is black, on the light
> theme.

That's not what I see. For me on Windows 7 it is the usual hover color when using 'Light'. When using 'Dark' I do not see any difference (black with or without the patch). I also tried 'Light/Dark (Linux)', but no difference.

So, is the difference only visible when using Linux? If so, can you attach some screen shots?
Comment 14 Lars Vogel CLA 2018-03-19 11:31:17 EDT
(In reply to Dani Megert from comment #13)
> So, is the difference only visible when using Linux? 

See Comment 12 : 1) While using the light theme, on Linux,
Comment 15 Lars Vogel CLA 2018-03-19 11:35:38 EDT
Created attachment 273198 [details]
After the change

(In reply to Dani Megert from comment #13)
>If so, can you attach some screen shots?

New screenshot for after the change, see existing screenshot "Before the change"
Comment 16 Dani Megert CLA 2018-03-19 11:38:43 EDT
(In reply to Lars Vogel from comment #14)
> (In reply to Dani Megert from comment #13)
> > So, is the difference only visible when using Linux? 
> 
> See Comment 12 : 1) While using the light theme, on Linux,

Yep, saw that, but there was no information about (un-)expected changes on other Platforms.
Comment 18 Roland Grunberg CLA 2018-03-19 11:43:00 EDT
Thanks for handling this so quickly (every other comment I try and make gets a mid-air collision :) )

I commented a bit on the review itself but didn't post to here. See comment #1, and 2 for patch set 4. This doesn't affect win32/macos and meant only for Linux on light theme.