cb0c45df28d01afc48d55f91a642dc456e6fe478
braney
  Sat Apr 18 13:36:06 2026 -0700
Add bigDbSnp to the list of track types that support the Change Track Color override; the bigDbSnp renderer goes through genericDrawItems/colorFromCart so the override takes effect by clearing the per-SNP functional-impact itemColor callback. refs #20460

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index f5973164cf5..b88a66bed70 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -6049,31 +6049,32 @@
 {
 if (!cfgOptionBooleanDefault("showColorPicker", FALSE))
     return FALSE;
 char *type = tdb->type;
 char *track = tdb->track;
 // Blacklist tracks that use custom rendering incompatible with color override
 if (startsWith("gtexGene", track) || startsWith("gtexEqtlCluster", track)
     || startsWith("gtexEqtlTissue", track))
     return FALSE;
 return !tdbIsComposite(tdb)
     && (startsWithWord("bed", type) || startsWithWord("bigBed", type)
     || startsWithWord("genePred", type) || startsWithWord("bigGenePred", type)
     || startsWithWord("wig", type) || startsWithWord("bigWig", type)
     || startsWithWord("rmsk", type) || startsWithWord("interact", type)
     || startsWithWord("bigInteract", type) || startsWithWord("bigLolly", type)
-    || startsWithWord("vcfTabix", type) || startsWithWord("vcf", type));
+    || startsWithWord("vcfTabix", type) || startsWithWord("vcf", type)
+    || startsWithWord("bigDbSnp", type));
 }
 
 void colorTrackOption(struct cart *cart, char *name, struct trackDb *tdb)
 /* color picker for overriding track color */
 {
 
 char varName[1024];
 safef(varName, sizeof(varName), "%s.colorOverride", name);
 
 char defaultColor[16];
 safef(defaultColor, sizeof(defaultColor), "#%02x%02x%02x", tdb->colorR, tdb->colorG, tdb->colorB);
 
 char *rawCartValue = cartOptionalString(cart, varName);
 boolean hasOverride = (rawCartValue != NULL && rawCartValue[0] != '\0');
 char *colorValue = hasOverride ? rawCartValue : defaultColor;