340dfdea9cdbee56a51f62b3934c2d3b7bbf6b57 max Mon Apr 30 14:50:12 2012 -0700 UI themes for hgc/hgGene and some fixes for hgTracks diff --git src/lib/htmshell.c src/lib/htmshell.c index 88e3dfd..8aaeae9 100644 --- src/lib/htmshell.c +++ src/lib/htmshell.c @@ -343,39 +343,49 @@ static char *htmlStyle = "\n"; char *htmlStyleUndecoratedLink = /* Style that gets rid of underline of links. */ "\n"; +// optional style set by theme, added after main style and thus +// can overwrite main style settings +static char *htmlStyleTheme = NULL; + void htmlSetStyle(char *style) /* Set document wide style. A favorite style to * use for many purposes is htmlStyleUndecoratedLink * which will remove underlines from links. * Needs to be called before htmlStart or htmShell. */ { htmlStyle = style; } +void htmlSetStyleTheme(char *style) +/* Set theme style. Needs to be called before htmlStart or htmShell. */ +{ +htmlStyleTheme = style; +} + static char *htmlBackground = NULL; void htmlSetBackground(char *imageFile) /* Set background - needs to be called before htmlStart * or htmShell. */ { htmlBackground = imageFile; } static int htmlBgColor = 0xFFFFFF; boolean gotBgColor = FALSE; void htmlSetBgColor(int color) /* Set background color - needs to be called before htmlStart * or htmShell. */ @@ -426,30 +436,32 @@ #else///ifndef TOO_TIMID_FOR_CURRENT_HTML_STANDARDS char *browserVersion; if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8') fputs("\n", f); else fputs("",f); // Strict would be nice since it fixes atleast one IE problem (use of :hover CSS pseudoclass) //fputs("\n",f); #endif///ndef TOO_TIMID_FOR_CURRENT_HTML_STANDARDS } fputs("", f); fprintf(f,"
\n%s