summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2016-04-27 15:56:59 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2016-05-12 11:59:09 +0100
commit66322c0940116100154e3abb5a317124b2cbf93a (patch)
tree6d9cd37ade801f04b3b6e188ec72c9c428d8158b
parentc85e79b32f76c742bd7af407d9dfdcdb89d94548 (diff)
downloadefl-66322c0940116100154e3abb5a317124b2cbf93a.tar.gz
docgen: transparency for inheritance graph background
-rw-r--r--gendoc.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/gendoc.lua b/gendoc.lua
index 43dc3da799..e3b118d142 100644
--- a/gendoc.lua
+++ b/gendoc.lua
@@ -1256,11 +1256,13 @@ local class_to_node = function(cl, main)
local sn = cn:lower():gsub("%.", "_")
local attrs = { "label = \"" .. cn .. "\"" }
local clr = class_to_color(cl)
+ attrs[#attrs + 1] = "style = filled"
+ attrs[#attrs + 1] = "color = " .. clr[1]
if main then
- attrs[#attrs + 1] = "style = filled"
attrs[#attrs + 1] = "fillcolor = " .. clr[2]
+ else
+ attrs[#attrs + 1] = "fillcolor = white"
end
- attrs[#attrs + 1] = "color = " .. clr[1]
-- FIXME: need a dokuwiki graphviz plugin with proper URL support
-- the existing one only supports raw URLs (no dokuwikí namespaces)
@@ -1290,6 +1292,7 @@ local build_igraph = function(cl)
buf[#buf + 1] = "digraph hierarchy {\n"
buf[#buf + 1] = "rankdir = TB\n"
buf[#buf + 1] = "size = \"6\"\n"
+ buf[#buf + 1] = "bgcolor = \"transparent\"\n"
buf[#buf + 1] = "node [shape = box]\n\n"
local nbuf = {}