Skip to contentSkip to conversation

Respect background when drawing history in SWT.

PATCH New Robin Rosenberg 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Respect background when drawing history in SWT.

Use transparent text background for drawing text to make the history look nice when there is a background pattern or effects like alternating background colors for each row.

---
 .../egit/ui/internal/history/SWTPlotRenderer.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/SWTPlotRenderer.java +1 -1
index 23ec255..c4ee282 100644
@@ -89,7 +89,7 @@ protected void drawText(final String msg, final int x, final int y) {
 		final int texty = (y * 2 - textsz.y) / 2;
 		g.setForeground(cellFG);
 		g.setBackground(cellBG);
-		g.drawString(msg, cellX + x, cellY + texty);
+		g.drawString(msg, cellX + x, cellY + texty, true);
 	}
 
 	protected Color laneColor(final SWTLane myLane) {
Signature · 1 line
1.6.0.3.578.g6a50