ee8b9b26531c6606398b89ef86aa72469ab92bd5 max Tue Oct 28 09:29:27 2025 -0700 adding new info icon to group and making the hide group button do a refresh, refs #36610 diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 4829a3a7796..013e6b2f524 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -9478,46 +9478,59 @@ boolean newVal = FALSE; safef(option, sizeof(option),"%s_sel", subtrack->track); newVal = sameString(button, ADD_BUTTON_LABEL); cartSetBoolean(cart, option, newVal); } } } } puts(""); } return TRUE; } static bool mouseOverJsDone = FALSE; -void printInfoIconSvg() -/* Print just info icon (i) as svg tag to stdout */ +void printInfoIconSvg(char *color) +/* Print just info icon (i) as svg tag to stdout, default color is #1C274C */ { puts(""); -puts(""); -puts(""); -puts(""); +printf("", color); +printf("", color); +printf("", color); puts(""); } +void printInfoIconColor(char *mouseover, char *color) +/* Print info icon (i) with explanatory text on mouseover, with color */ +{ +printf("", mouseover); +printInfoIconSvg(color); +puts(""); +if (!mouseOverJsDone) + { + jsInline("convertTitleTagsToMouseovers();\n"); + mouseOverJsDone = TRUE; + } +} + void printInfoIcon(char *mouseover) /* Print info icon (i) with explanatory text on mouseover */ { // see https://www.svgrepo.com/svg/524660/info-circle printf("", mouseover); -printInfoIconSvg(); +printInfoIconSvg("#1C274C"); puts(""); if (!mouseOverJsDone) { jsInline("convertTitleTagsToMouseovers();\n"); mouseOverJsDone = TRUE; } } void hCompositeUi(char *db, struct cart *cart, struct trackDb *tdb, char *primarySubtrack, char *fakeSubmit, char *formName) // UI for composite tracks: subtrack selection. If primarySubtrack is // non-NULL, don't allow it to be cleared and only offer subtracks // that have the same type. If fakeSubmit is non-NULL, add a hidden // var with that name so it looks like it was pressed. {