4275e302d217370b4eb756d45842f03e1ada9ae1
kate
  Tue Nov 8 11:50:38 2016 -0800
Changes to colorPatch in tissue table to better distinguish selected tissues: switch to white patch with tissue color border.   Also fix to problem with select/deselect of tissues from SVG. refs #17369

diff --git src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c
index 520f9c0..285e616 100644
--- src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c
+++ src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c
@@ -121,34 +121,36 @@
 puts("<table class='tissueTable'>");
 puts("<tr>");
 for (tis = tissues; tis != NULL; tis = tis->next)
     {
     if (tis->id < last)
         i = tis->id * 2;
     else
         i = (tis->id - last) * 2 + 1;
     tisTable[i] = tis;
     }
 boolean all = (hashNumEntries(selectedHash) == 0) ? TRUE : FALSE;
 for (i=0; i<count; i++)
     {
     tis = tisTable[i];
     boolean isChecked = all || (hashLookup(selectedHash, tis->name) != NULL);
-    printf("<td class='tissueColor' bgcolor=%06X></td>"
+    printf("<td class='tissueColor %s' data-tissueColor=#%06X style='background-color: #%06X; border-style: solid; border-width: 2px; border-color: #%06X;'></td>"
            "<td class='tissueLabel %s' id='%s'>%s",
-                tis->color, 
+                isChecked ? "" : "tissueNotSelectedColor", tis->color,
+                    isChecked ? tis->color : 0xFFFFFF, tis->color,
                 isChecked ? "tissueSelected" : "", tis->name, tis->description);
+
     printf("<input type='checkbox' name='%s' value='%s' %s style='display: none;'>", 
                 var, tis->name, isChecked ? "checked" : "");
     puts("</td>");
     col++;
     if (col > cols-1)
         {
         puts("</tr>\n<tr>");
         col = 0;
         }
     }
 puts("</tr>\n");
 puts("</table>");
 char buf[512];
 safef(buf, sizeof(buf), "%s%s.%s", cgiMultListShadowPrefix(), tdb->track, GTEX_TISSUE_SELECT);
 cgiMakeHiddenVar(buf, "0");