Graphviz background

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
MaKARON
Posts: 13
Joined: 12 Dec 2005, 12:02
Location: Olkusz / Poland
Contact:

Graphviz background

Post 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
Post Reply