6f7f5bac129d59cfb99d47a3f1de118c48e423cd chmalee Wed Jul 23 15:25:01 2025 -0700 When mousing over a track, put a gear icon over the grey bar to hint that a context click is available. Put a 'x' icon to the right (or left in revCmp mode) to allow quick hiding of tracks. Both icons are enabled via hg.conf:greyBarIcons, refs #34420 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 9d8dbbd4ced..56c148ee253 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9831,30 +9831,33 @@ hPrintf("
"); // put the track download interface behind hg.conf control if (cfgOptionBooleanDefault("showMouseovers", FALSE)) jsInline("var showMouseovers = true;\n"); // if the configure page allows hgc popups tell the javascript about it if (cfgOptionBooleanDefault("canDoHgcInPopUp", FALSE) && cartUsualBoolean(cart, "doHgcInPopUp", TRUE)) jsInline("var doHgcInPopUp = true;\n"); +if (cfgOptionBooleanDefault("greyBarIcons", FALSE)) + jsInline("var greyBarIcons = true;\n"); + // TODO GALT nothing to do here. pruneRedundantCartVis(trackList); if (measureTiming) measureTime("Done with trackForm"); } static void toggleRevCmplDisp() /* toggle the reverse complement display mode */ { // forces complement bases to match display revCmplDisp = !revCmplDisp; cartSetBooleanDb(cart, database, REV_CMPL_DISP, revCmplDisp); cartSetBooleanDb(cart, database, COMPLEMENT_BASES_VAR, revCmplDisp); }