57490a621bd10c9c7810bdf474b7c801027d237d max Thu Sep 10 06:56:54 2026 -0700 Use one blue for the menu bar on every page, refs #38206 The bar came in three shades: #2636d1 from nice_menu.css on hgTables, hgBlat, hgc and the other cart CGIs, #00457c on hgTracks through its own set of ids, and #003a72 on the gateway and the static pages, which override nice_menu.css afterwards. They are all #003a72 now, the house deep navy already used for the gateway banner, the footer and the buttons. hgTracks no longer rewrites main-menu-whole and home-link into its own ids, so its bar and its house icon come from the same rules as everyone else's, and hgTracksHomeIconSprite.png goes away - the shared sprite is white on a transparent background and sits on whatever blue the bar has. gbStatic.css keeps its own copy of the color on purpose; the comment there says why. diff --git src/hg/hgTracks/menu.c src/hg/hgTracks/menu.c index 57355e6052f..b54f0bbfc6c 100644 --- src/hg/hgTracks/menu.c +++ src/hg/hgTracks/menu.c @@ -428,23 +428,20 @@ safef(buf, sizeof(buf), "../cgi-bin/hgTracks?%s&hgt.reset=on", uiVars); appendLinkWithShortcut(&links, buf, "Default Tracks", "defaultTracksMenuLink", "Show only default tracks", "d t", FALSE, FALSE); safef(buf, sizeof(buf), "../cgi-bin/hgTracks?%s&hgt.defaultImgOrder=on", uiVars); appendLinkWithShortcut(&links, buf, "Default Track Order", "defaultTrackOrderMenuLink", "Re-order tracks to be in default order", "d o", FALSE, FALSE); appendLinkWithOnclick(&links, "#", "Remove all highlights", "cleaerHighlightLink", "Remove all highlights on all genomes", "highlightCurrentPosition('clear'); $('ul.nice-menu li ul').hide();", "h c", FALSE, FALSE); appendLinkWithOnclick(&links, "#", "Highlight here", "highlightHereMenu", "Add a highlight that covers the entire currently shown region, using the default color. Keyboard shortcut memo is 'highlight mark here'", "highlightCurrentPosition('add'); $('ul.nice-menu li ul').hide();", "h m", FALSE, FALSE); appendLinkWithShortcut(&links, "../cgi-bin/cartReset?skipLs=1", "Reset All User Settings", "cartResetMenuLink", "Clear user data, e.g. active tracks, track configuration, custom data, ...", "c r", FALSE, FALSE); struct dyString *viewMenu = dyStringCreate("<li class='menuparent' id='view'><button type='button' aria-expanded='false'>View</button>\n<ul>\n"); freeLinksAndConvert(links, viewMenu); dyStringAppend(viewMenu, "</ul>\n</li>\n"); menuStr = replaceChars(menuStr, "<!-- OPTIONAL_VIEW_MENU -->", dyStringCannibalize(&viewMenu)); -menuStr = replaceChars(menuStr, "id=\"main-menu-whole\"", "id=\"hgTracks-main-menu-whole\""); -menuStr = replaceChars(menuStr, "id=\"home-link\"", "id=\"hgTracks-home-link\""); - hPuts(menuStr); freez(&menuStr); }