Bug 536171

Summary: [Dark Theme] Branch label color is too light
Product: [Technology] EGit Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Lars.Vogel, twolf
Version: unspecifiedKeywords: usability
Target Milestone: 5.10   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/c/egit/egit/+/168287
https://git.eclipse.org/c/egit/egit.git/commit/?id=68bcb65a9bbaeff880095ca03c76683411806cd9
Whiteboard:
Attachments:
Description Flags
Screenshot
none
Screenshot none

Description Lars Vogel CLA 2018-06-22 04:54:49 EDT
Created attachment 274584 [details]
Screenshot

The branch label color is too light and really sticks out. Could you use a preference for this color and style it in your dark theme?
Comment 1 Thomas Wolf CLA 2018-06-23 08:02:58 EDT
Which color? I presume you mean the "other references": HEAD, FETCH_HEAD, ORIG_HEAD, and so on.

There are quite a few colors involved; see class SWTPlotRenderer. They're currently all hard-coded, and for each ref type, there are actually two colors: one for the border and one for the fill. And the text color is hard-coded to black.

To avoid inconsistencies, one would probably want to use preferences for the fill colors only and derive the border colors automatically, and also automatically choose black or a light gray depending on whether the background is dark or light. With some care, such automatic determination of colors should be possible; we do something similar already for the overview ruler in the DiffEditorPage.
Comment 2 Lars Vogel CLA 2020-05-14 05:10:08 EDT
(In reply to Thomas Wolf from comment #1)
> Which color? I presume you mean the "other references": HEAD, FETCH_HEAD,
> ORIG_HEAD, and so on.

Yes
Comment 3 Eclipse Genie CLA 2020-08-26 17:38:16 EDT
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/168287
Comment 4 Lars Vogel CLA 2020-08-27 10:59:23 EDT
Created attachment 283978 [details]
Screenshot

Way better, thanks Thomas. The remote branches still look too light.
Comment 5 Thomas Wolf CLA 2020-08-27 13:52:15 EDT
Looks fine IMO, but we can darken those, too. Do you want all these colors be muted/darkened, or just the one for remote branches? (Tags and annotated tags?)
Comment 6 Lars Vogel CLA 2020-08-27 14:40:14 EDT
(In reply to Thomas Wolf from comment #5)
> Looks fine IMO, but we can darken those, too. Do you want all these colors
> be muted/darkened, or just the one for remote branches? (Tags and annotated
> tags?)

All would be the best IMHO
Comment 7 Lars Vogel CLA 2020-08-27 14:41:10 EDT
(In reply to Thomas Wolf from comment #5)
> Looks fine IMO, but we can darken those, too. Do you want all these colors
> be muted/darkened, or just the one for remote branches? (Tags and annotated
> tags?)

The green colour (master) looks already dark enough IMHO