Page 1 of 1

Graphviz background

Posted: 13 Dec 2005, 08:43
by MaKARON
Hey

If you want to change graphviz backgrounds (useful for customization of all mantis colors - specialy background of a page) use this hack:

in config_defaults_inc.php ADD this line (at any place):

$g_graphviz_bgcolor = '#c5e5f0';

and in core/relationship_graph_api.php ADD this lines (112 and 119 are line numbers):

112:$t_graphviz_bgcolor = config_get( 'graphviz_bgcolor', '#FFFFFF' );
119: if ( !empty( $t_graphviz_bgcolor ) )
$t_graph_attributes[ 'bgcolor' ] = $t_graphviz_bgcolor;

Sorry for non-patch hack, but I have no time today to cleanup my code (I've made more hacks).

Regards Marcin