90ea52575125dc10ccbdc96754b57025645f84f5 max Mon Aug 9 05:25:06 2021 -0700 For collection tracks, now using only the filled-out folder icon to simplify the display, suggested by Matt and Lou. refs #25035, The mouseover text shows the exact type. diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 7b2670e..888bf84 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -8011,56 +8011,53 @@ isPressed ? "or exit" : ""); hButtonNoSubmitMaybePressed("hgTracksConfigMultiRegionPage", "multi-region", buf, "popUpHgt.hgTracks('multi-region config'); return false;", isPressed); } static void printTrackLink(struct track *track) /* print a link hgTrackUi with shortLabel and various icons and mouseOvers */ { if (track->hasUi) { char *url = trackUrl(track->track, chromName); char *longLabel = replaceChars(track->longLabel, "\"", """); // Print an icon before the title when one is defined hPrintPennantIcon(track->tdb); - struct dyString *dsMouseOver = dyStringCreate("%s", -longLabel); + struct dyString *dsMouseOver = dyStringCreate("%s", longLabel); struct trackDb *tdb = track->tdb; if (tdb->children) { dyStringPrintf(dsMouseOver, " - %d subtracks of different types (super track)", slCount(tdb->children)); } else if (tdb->subtracks) { dyStringPrintf(dsMouseOver, " - %d subtracks of similar types (composite)", slCount(tdb->subtracks)); } hPrintf("", url, dyStringCannibalize(&dsMouseOver)); freeMem(url); freeMem(longLabel); } -//if (tdbIsSuper(track->tdb) || tdbIsComposite(track->tdb)) - //hPrintf(""); -if (tdbIsSuper(track->tdb)) - hPrintf(""); -if (tdbIsComposite(track->tdb)) +// show the folder icon from the font-awesome collection. +// the icon collection also contains a "fa fa-folder-o" icon, which is the outline. It was decided to use only the filled out icon for now. +if (tdbIsSuper(track->tdb) || tdbIsComposite(track->tdb)) hPrintf(""); hPrintf(" %s", track->shortLabel); hPrintf("
"); if (track->hasUi) hPrintf("
"); } void doTrackForm(char *psOutput, struct tempName *ideoTn) /* Make the tracks display form with the zoom/scroll buttons and the active * image. If the ideoTn parameter is not NULL, it is filled in if the * ideogram is created. */ { struct group *group; struct track *track;