06aae68f351336a5ba55d9c7c5cf0a68607b780f
kate
  Wed Apr 27 10:16:14 2016 -0700
Tweak label colors - still readable with less darkening (to stay truer to original)

diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index b8f241c..45dd53e 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -309,30 +309,40 @@
 rgbColor.g = ((int)rgbColor.g)/2;
 rgbColor.b = ((int)rgbColor.b)/2;
 return hvGfxFindColorIx(hvg, rgbColor.r, rgbColor.g, rgbColor.b);
 }
 
 Color somewhatDarkerColor(struct hvGfx *hvg, Color color)
 /* Get a somewhat darker shade of a color - 1/3 of the way towards black. */
 {
 struct rgbColor rgbColor =  hvGfxColorIxToRgb(hvg, color);
 rgbColor.r = (2*(int)rgbColor.r)/3;
 rgbColor.g = (2*(int)rgbColor.g)/3;
 rgbColor.b = (2*(int)rgbColor.b)/3;
 return hvGfxFindColorIx(hvg, rgbColor.r, rgbColor.g, rgbColor.b);
 }
 
+Color slightlyDarkerColor(struct hvGfx *hvg, Color color)
+/* Get a slightly darker shade of a color - 1/4 of the way towards black. */
+{
+struct rgbColor rgbColor =  hvGfxColorIxToRgb(hvg, color);
+rgbColor.r = (9*(int)rgbColor.r)/10;
+rgbColor.g = (9*(int)rgbColor.g)/10;
+rgbColor.b = (9*(int)rgbColor.b)/10;
+return hvGfxFindColorIx(hvg, rgbColor.r, rgbColor.g, rgbColor.b);
+}
+
 Color lighterColor(struct hvGfx *hvg, Color color)
 /* Get lighter shade of a color - half way between this color and white */
 {
 struct rgbColor rgbColor =  hvGfxColorIxToRgb(hvg, color);
 rgbColor.r = (rgbColor.r+255)/2;
 rgbColor.g = (rgbColor.g+255)/2;
 rgbColor.b = (rgbColor.b+255)/2;
 return hvGfxFindColorIx(hvg, rgbColor.r, rgbColor.g, rgbColor.b);
 }
 
 Color somewhatLighterColor(struct hvGfx *hvg, Color color)
 /* Get a somewhat lighter shade of a color - 1/3 of the way towards white. */
 {
 struct rgbColor rgbColor =  hvGfxColorIxToRgb(hvg, color);
 rgbColor.r = (2*rgbColor.r+255)/3;