1da10945502204574470299154d4e6706c231b4f
jcasper
  Mon Mar 31 10:35:45 2025 -0700
Interact UI has a checkbox to disable the details boxes on interaction lines, refs #30380

diff --git src/hg/hgTracks/interactTrack.c src/hg/hgTracks/interactTrack.c
index 142a9e74614..bcb151905b9 100644
--- src/hg/hgTracks/interactTrack.c
+++ src/hg/hgTracks/interactTrack.c
@@ -508,55 +508,55 @@
 if (drawUp)
     {
     y1 = flipY(tg, y1);
     y2 = flipY(tg, y2);
     }
 if (isDashed)
     hvGfxDottedLine(hvg, x1, y1, x2, y2, color, TRUE);
 else
     hvGfxLine(hvg, x1, y1, x2, y2, color);
 }
 
 static void drawFootMapbox(struct track *tg, struct hvGfx *hvg, int start, int end, char *item, char *status,
                         int x, int y, int width, Color peakColor, Color highlightColor, boolean drawUp)
 /* Draw grab box and add map box */
 {
-if (trackDbSettingClosestToHomeOn(tg->tdb, INTERACT_NO_HGC))
+if (!interactUiShowHgcBoxes(tg->tdb, cart))
     return;
-// Add var to identify endpoint ('foot'), or NULL if no name for endpoint */
+// Add var to identify endpoint ('foot'), or NULL if no name for endpoint
 char *clickArg = NULL;
 if (!isEmptyTextField(item))
     {
     char buf[256];
     safef(buf, sizeof(buf),"foot=%s", cgiEncode(item));
     clickArg = cloneString(buf);
     }
 char *itemBuf = isEmptyTextField(item) ? status : item;
 if (drawUp)
     y = flipY(tg, y) - 3;
 hvGfxBox(hvg, x-1, y, 3, 2, peakColor);
 hvGfxBox(hvg, x, y, 1, 1, highlightColor);
 mapBoxHgcOrHgGene(hvg, start, end, x - width, y, width * 2, 4,
                    tg->track, item, itemBuf, NULL, TRUE, clickArg);
 }
 
 void drawPeakMapbox(struct track *tg, struct hvGfx *hvg, int seqStart, int seqEnd, 
                         char *item, char *status, int x, int y, 
                         Color peakColor, Color highlightColor, boolean drawUp)
 /* Draw grab box and add map box */
 {
-if (trackDbSettingClosestToHomeOn(tg->tdb, INTERACT_NO_HGC))
+if (!interactUiShowHgcBoxes(tg->tdb, cart))
     return;
 
 if (drawUp)
     y = flipY(tg, y);
 hvGfxBox(hvg, x-3, y-3, 7, 7, peakColor);
 hvGfxBox(hvg, x-2, y-2, 5, 5, highlightColor);
 mapBoxHgcOrHgGene(hvg, seqStart, seqEnd, x-3, y-3, 7, 7,
                    tg->track, item, status, NULL, TRUE, NULL);
 }
 
 static void drawOtherChromItem(struct track *tg, int seqStart, int seqEnd,
         struct hvGfx *hvg, int xOff, int yOff, int width,
         MgFont *font, Color color, enum trackVisibility vis,
         int draw, struct interact *inter, struct interactTrackInfo *tInfo,
         char *statusBuf, int peakColor, int highlightColor, boolean drawUp,