splitted up themeStyles in theme2css, style and themeStyles

This commit is contained in:
Ralf Becker 2003-04-27 08:18:53 +00:00
parent 1b0912de51
commit 191ac458fc

View File

@ -326,16 +326,25 @@ class html
/*! /*!
@function themeStyles @function themeStyles
@abstract returns simple stylesheet for nextmatch row-colors @abstract returns simple stylesheet (incl. <STYLE> tags) for nextmatch row-colors
@result the classes 'th' = nextmatch header, 'row_on'+'row_off' = alternating rows @result the classes 'th' = nextmatch header, 'row_on'+'row_off' = alternating rows
*/ */
function themeStyles() function themeStyles()
{ {
return $this->style( return $this->style($this->theme2css());
".th { background: ".$GLOBALS['phpgw_info']['theme']['th_bg']."; }\n". }
/*!
@function theme2css
@abstract returns simple stylesheet for nextmatch row-colors
@result the classes 'th' = nextmatch header, 'row_on'+'row_off' = alternating rows
*/
function theme2css()
{
return
".th { background: ".$GLOBALS['phpgw_info']['theme']['th_bg']."; font-weight: bold; }\n".
".row_on,.th_bright { background: ".$GLOBALS['phpgw_info']['theme']['row_on']."; }\n". ".row_on,.th_bright { background: ".$GLOBALS['phpgw_info']['theme']['row_on']."; }\n".
".row_off { background: ".$GLOBALS['phpgw_info']['theme']['row_off']."; }\n" ".row_off { background: ".$GLOBALS['phpgw_info']['theme']['row_off']."; }\n";
);
} }
function style($styles) function style($styles)