af505de858be1957547715140d750852a9734b20 max Mon Apr 30 10:16:29 2012 -0700 adding themes to browser: config option and background image overwrite diff --git src/hg/lib/hui.c src/hg/lib/hui.c index bf7a425..19f34e8 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -392,30 +392,31 @@ int len = strlen(defaultDir); // Get rid of trailing slash to be consistent with hDocumentRoot if(defaultDir[len-1] == '/') defaultDir[len-1] = 0; } else { defaultDir[0] = 0; } return cfgOptionDefault("browser.cgiRoot", defaultDir); } char *hBackgroundImage() /* get the path to the configured background image to use, or the default */ { + return cfgOptionDefault("browser.background", DEFAULT_BACKGROUND); } /****** Some stuff for tables of controls ******/ struct controlGrid *startControlGrid(int columns, char *align) /* Start up a control grid. */ { struct controlGrid *cg; AllocVar(cg); cg->columns = columns; cg->align = cloneString(align); cg->rowOpen = FALSE; return cg; }