Bug 525763 - [GTK3] [dark theme] Vertical bar to the left of line numbers is not dark
Summary: [GTK3] [dark theme] Vertical bar to the left of line numbers is not dark
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.8 M5   Edit
Assignee: Eric Williams CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
: 489030 (view as bug list)
Depends on: 528342
Blocks:
  Show dependency tree
 
Reported: 2017-10-09 09:19 EDT by Nobody - feel free to take it CLA
Modified: 2018-04-11 12:00 EDT (History)
6 users (show)

See Also:


Attachments
Screenshot of the issue (111.21 KB, image/png)
2017-10-09 09:20 EDT, Nobody - feel free to take it CLA
no flags Details
broken dialog background (45.08 KB, image/png)
2017-10-19 09:15 EDT, Andrey Loskutov CLA
no flags Details
Some widgets have no bakground after patch (233.72 KB, image/png)
2017-12-01 07:58 EST, Andrey Loskutov CLA
no flags Details
Some widgets have no bakground after patch (234.94 KB, image/png)
2017-12-01 07:59 EST, Andrey Loskutov CLA
no flags Details
Same UI before the patch (244.85 KB, image/png)
2017-12-01 08:01 EST, Andrey Loskutov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody - feel free to take it CLA 2017-10-09 09:19:14 EDT
The vertical bar to the left of line numbers which is usually used to display the errors/warnings/quick fixes is not styled at all when I switch to dark theme.

I'm using Fedora 26 and Photon I20170924-2000.
Comment 1 Nobody - feel free to take it CLA 2017-10-09 09:20:23 EDT
Created attachment 270886 [details]
Screenshot of the issue
Comment 2 Lars Vogel CLA 2017-10-09 09:22:50 EDT
I think you are seeing the range indicator. If yes, I think this is a dup of Bug 514043. You can check with unflagging Windows-> Preferences -> General -> Editors -> Text Editors -> Show range indicator
Comment 3 Nobody - feel free to take it CLA 2017-10-09 09:34:13 EDT
I don't think it's the range indicator. My range in the screenshot I provided is bound only to line 107 (where my cursor is) and you can see that it's bit of blue-ish under the error marker. But the rest of the bar, including the package declaration area supposedly out of the range of where my cursor is, is still  non-dark.

To confirm, I also disabled the range indicator and it did not make a difference elsewhere, except on the range indicator limited to line 107.
Comment 4 Alexander Kurtakov CLA 2017-10-09 09:44:37 EDT
Eric, I have a feeling this relates with the color port.
Comment 5 Eric Williams CLA 2017-10-10 09:59:36 EDT
Does this bug reproduce on Oxygen?
Comment 6 Alexander Kurtakov CLA 2017-10-10 10:14:56 EDT
(In reply to Eric Williams from comment #5)
> Does this bug reproduce on Oxygen?

No, works fine for me on Oxygen.
Comment 7 Eric Williams CLA 2017-10-10 10:47:47 EDT
(In reply to Alexander Kurtakov from comment #6)
> (In reply to Eric Williams from comment #5)
> > Does this bug reproduce on Oxygen?
> 
> No, works fine for me on Oxygen.

Okay, will investigate.
Comment 8 Eric Williams CLA 2017-10-11 09:48:33 EDT
I can confirm this is an SWT issue related to the color port.
Comment 9 Eclipse Genie CLA 2017-10-11 14:17:10 EDT
New Gerrit change created: https://git.eclipse.org/r/106611
Comment 11 Andrey Loskutov CLA 2017-10-19 09:15:02 EDT
This change broke Platform UI at least in the case of "no CSS" theme.

The background of many dialogs is white and not gray anymore.

To reproduce on Linux (GTK3.14): in a new workspace, go to Preferences General Appearance and unset "enable theming". After restart, open same dialog and see that the background is white all over the place, except some groups. I will attach the picture.

Funny enough, this seem to disappear after opening/closing the preferences dialog, so there is some initialization issue.
Comment 12 Andrey Loskutov CLA 2017-10-19 09:15:30 EDT
Created attachment 271094 [details]
broken dialog background
Comment 13 Andrey Loskutov CLA 2017-10-19 09:18:08 EDT
(In reply to Andrey Loskutov from comment #12)
> Created attachment 271094 [details]
> broken dialog background

(In reply to Eclipse Genie from comment #10)
> Gerrit change https://git.eclipse.org/r/106611 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=dbb0707aaf394479cecab65956b04e6677e546d3

Reverting SWT to the previous commit 700f51a9dadbb2758a6fdb36646cac1c42f17cf9 fixes the regression for me.
Comment 14 Eric Williams CLA 2017-10-20 04:26:05 EDT
(In reply to Andrey Loskutov from comment #13)
> (In reply to Andrey Loskutov from comment #12)
> > Created attachment 271094 [details]
> > broken dialog background
> 
> (In reply to Eclipse Genie from comment #10)
> > Gerrit change https://git.eclipse.org/r/106611 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> > ?id=dbb0707aaf394479cecab65956b04e6677e546d3
> 
> Reverting SWT to the previous commit
> 700f51a9dadbb2758a6fdb36646cac1c42f17cf9 fixes the regression for me.

I can reproduce the issue you have described. Interestingly enough, it only happens with an empty workspace. Having any editor open doesn't reproduce the issue.

Happens with GTK3.14 - 3.22.

I'll investigate in the coming weeks.
Comment 15 Andrey Loskutov CLA 2017-11-04 19:11:21 EDT
Ping. I would appretiate if we could revert the last patch if we can't get a fix for the regression soon.
Comment 16 Eclipse Genie CLA 2017-11-09 10:34:33 EST
New Gerrit change created: https://git.eclipse.org/r/111310
Comment 18 Eric Williams CLA 2017-11-09 11:04:35 EST
(In reply to Eclipse Genie from comment #17)
> Gerrit change https://git.eclipse.org/r/111310 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=c63947ad40653d5435a577fcbd47fe1e29c447ec

I've reverted the fix in the meantime until I can find a proper solution.
Comment 19 Andrey Loskutov CLA 2017-11-10 07:42:30 EST
(In reply to Eric Williams from comment #18)
> 
> I've reverted the fix in the meantime until I can find a proper solution.

Many thanks. Works fine for me now with I20171109-2000.
Comment 21 Andrey Loskutov CLA 2017-12-01 07:58:03 EST
I'm sorry being too late, but it looks like the last patch broke the toolbars / titles in some UI's. I haven't investigated this further, but some of them have no background now (and before they had the background from parent). See next screenshot. Note: I've de-selected the theme and run Eclipse without CSS theme support to see how it looks like in a "pure" native widget mode.
Comment 22 Andrey Loskutov CLA 2017-12-01 07:58:43 EST
Created attachment 271736 [details]
Some widgets have no bakground after patch
Comment 23 Andrey Loskutov CLA 2017-12-01 07:59:26 EST
Created attachment 271737 [details]
Some widgets have no bakground after patch
Comment 24 Andrey Loskutov CLA 2017-12-01 08:01:54 EST
Created attachment 271738 [details]
Same UI before the patch
Comment 25 Alexander Kurtakov CLA 2017-12-01 08:08:17 EST
Please provide a junit test for this issue. IMHO it's smaller issue than the broken dark them ruller so it's lesser evil.
Comment 26 Alexander Kurtakov CLA 2017-12-01 08:19:16 EST
Eric, it's up to you whether you'll get a fix for the issue ASAP or you want to revert it. FWIW, JUnit tests are badly due
Comment 27 Andrey Loskutov CLA 2017-12-01 08:31:37 EST
(In reply to Alexander Kurtakov from comment #25)
> Please provide a junit test for this issue. 

Did you mean me or Eric? I have no time for this, sorry.

> IMHO it's smaller issue than the
> broken dark them ruller so it's lesser evil.

There are much more users with "Light" theme as with the "Dark" one, therefore I don't think this is a good trade off to fix one bug by introducing another one which affects more people.

BTW interesting effect is: in the "Light" theme the broken background seem to change to the "right" one after making the view / editor active. In the "no CSS" theme the broken background stays forever.
Comment 28 Andrey Loskutov CLA 2017-12-01 08:34:45 EST
I would vote +1 for reverting for M4.
Comment 29 Eclipse Genie CLA 2017-12-01 11:27:10 EST
New Gerrit change created: https://git.eclipse.org/r/112717
Comment 30 Eric Williams CLA 2017-12-01 11:41:45 EST
(In reply to Eclipse Genie from comment #29)
> New Gerrit change created: https://git.eclipse.org/r/112717

I am reverting the patch. This needs more time to be properly investigated.
Comment 32 Eric Williams CLA 2017-12-01 11:58:15 EST
(In reply to Eclipse Genie from comment #31)
> Gerrit change https://git.eclipse.org/r/112717 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=382c1d03f132e44887b0dcb83fdb7f7578ef9db2

Reverted. I think it's best to fix bug 519416 before getting involved in this one. They are likely related.

Moving out of M4.
Comment 33 Eclipse Genie CLA 2017-12-08 14:27:47 EST
New Gerrit change created: https://git.eclipse.org/r/113100
Comment 34 Eric Williams CLA 2017-12-08 14:34:56 EST
(In reply to Eclipse Genie from comment #33)
> New Gerrit change created: https://git.eclipse.org/r/113100

I've uploaded a new patch -- Andrey please review.
Comment 36 Eric Williams CLA 2017-12-12 14:40:16 EST
(In reply to Eclipse Genie from comment #35)
> Gerrit change https://git.eclipse.org/r/113100 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=e4ea137643762dd3e38d38276d52c49d8a5b8aec

In master now. Thanks everyone for your patience and efforts in helping me fix this pernicious bug.
Comment 37 Eric Williams CLA 2018-01-23 11:07:06 EST
Verified in I20180122-2000.
Comment 38 Eric Williams CLA 2018-04-11 12:00:37 EDT
*** Bug 489030 has been marked as a duplicate of this bug. ***