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

Bug 531527

Summary: [dark] Git decorator generates hard-to-read entries for ignored resources
Product: [Technology] EGit Reporter: Robert Munteanu <robert.munteanu>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chidveer, Lars.Vogel, matthias.sohn, twolf
Version: 4.10   
Target Milestone: 4.11   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/117985
https://git.eclipse.org/c/egit/egit.git/commit/?id=502bbd9af6078180377c8f9c7f0f6e6284d622fb
Whiteboard:
Attachments:
Description Flags
Package explorer with decorator enabled
none
Package explorer with decorator disabled none

Description Robert Munteanu CLA 2018-02-22 05:43:29 EST
Running EGit as part of Photon M5 ( 4.10.0.201712302008-r ) I see that ignored resources, such as /target/ for Maven projects are laid out with a black makes them stand out rather than fade out as I imagine it's ignored. Removing the 'Git' label decorator fixes the issue.
Comment 1 Robert Munteanu CLA 2018-02-22 05:44:42 EST
Created attachment 272810 [details]
Package explorer with decorator enabled
Comment 2 Robert Munteanu CLA 2018-02-22 05:46:59 EST
Created attachment 272811 [details]
Package explorer with decorator disabled
Comment 3 Thomas Wolf CLA 2018-02-22 15:02:49 EST
Duplicate of bug 496585?

@Lars: wasn't there another bug somewhere, originally in EGit but now possibly in Platform, about these plugin's overrides/additions of workbench CSS not always working? I'm sure I had seen that a while ago, but I can't find it now.
Comment 4 Thomas Wolf CLA 2018-02-22 15:23:22 EST
Found it; that was bug 466075. Looks like the upshot is that we have to add a pseudo-selector?

@Lars: is that correct?
Comment 5 Thomas Wolf CLA 2018-02-22 15:25:15 EST
And the EGit bug report I was thinking of was bug 502380.
Comment 6 Lars Vogel CLA 2018-02-22 15:31:32 EST
Thomas, IIRC we added the pseudo selector to the Egit styling.
Comment 7 Thomas Wolf CLA 2018-02-22 15:57:46 EST
I don't see it in org.eclipse.egit.ui/css/e4-dark_egit_prefstyle.css ? Shouldn't there be a trailing ":org-eclipse-egit-ui" ?
Comment 8 Lars Vogel CLA 2018-02-22 16:05:06 EST
(In reply to Thomas Wolf from comment #7)
> I don't see it in org.eclipse.egit.ui/css/e4-dark_egit_prefstyle.css ?
> Shouldn't there be a trailing ":org-eclipse-egit-ui" ?

Yes. I very sure ai contributed that. Not at my computer though to verify.
Comment 9 Lars Vogel CLA 2018-02-22 16:08:54 EST
(In reply to Lars Vogel from comment #8)
> (In reply to Thomas Wolf from comment #7)
> > I don't see it in org.eclipse.egit.ui/css/e4-dark_egit_prefstyle.css ?
> > Shouldn't there be a trailing ":org-eclipse-egit-ui" ?
> 
> Yes. I very sure ai contributed that. Not at my computer though to verify.

Anyway, I suggest to add it, if it is now missing. It will only do good.
Comment 10 Eclipse Genie CLA 2018-02-22 16:18:49 EST
New Gerrit change created: https://git.eclipse.org/r/117985
Comment 11 Eclipse Genie CLA 2018-02-22 16:41:05 EST
Gerrit change https://git.eclipse.org/r/117985 was merged to [master].
Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=502bbd9af6078180377c8f9c7f0f6e6284d622fb
Comment 12 Robert Munteanu CLA 2018-02-23 03:07:42 EST
Wow, thanks for the quick fix.
Comment 13 Thomas Wolf CLA 2018-02-23 03:10:58 EST
You're welcome. Actually, both Lars and I thought this had been done long ago. But apparently the CSS update had fallen through the cracks after bug 466075 had been fixed :-(

Anyway, the fix is available in the latest EGit nightly from http://download.eclipse.org/egit/updates-nightly, and it'll be in the soon to be released 4.11, too.
Comment 14 Lars Vogel CLA 2018-02-23 04:12:23 EST
(In reply to Thomas Wolf from comment #13)
> You're welcome. Actually, both Lars and I thought this had been done long
> ago. 

Looks like I only fixed the definition in platform, so this was fixed for me as EGit was not using the same CSS node as platform (due to the pseudo selector). I assume Robert has something else installed which also does not use the pseudo selector. Robert, if you find another css extension without the selector, please open a bug for the corresponding component.
Comment 15 Robert Munteanu CLA 2018-02-23 10:36:44 EST
(In reply to comment #14)
> (In reply to Thomas Wolf from comment #13)
> > You're welcome. Actually, both Lars and I thought this had been done long
> > ago.
> 
> Looks like I only fixed the definition in platform, so this was fixed for me as
> EGit was not using the same CSS node as platform (due to the pseudo selector). I
> assume Robert has something else installed which also does not use the pseudo
> selector. Robert, if you find another css extension without the selector, please
> open a bug for the corresponding component.

Will open another bug if I see a problem, of course.
Comment 16 Thomas Wolf CLA 2018-04-22 09:09:11 EDT
*** Bug 533561 has been marked as a duplicate of this bug. ***