e106c41
From ff86c42c8614828be77810a50202e1f771b35ff3 Mon Sep 17 00:00:00 2001
794d16c
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
794d16c
Date: Mon, 21 Oct 2013 21:29:23 +0200
794d16c
Subject: [PATCH] analyze: set white backgound
794d16c
794d16c
In programs like eog and gimp the transparant background did not
794d16c
look very good.
794d16c
794d16c
https://bugs.freedesktop.org/show_bug.cgi?id=70720
794d16c
---
794d16c
 src/analyze/systemd-analyze.c | 2 ++
794d16c
 1 file changed, 2 insertions(+)
794d16c
794d16c
diff --git a/src/analyze/systemd-analyze.c b/src/analyze/systemd-analyze.c
794d16c
index a4f15eb..9a69795 100644
794d16c
--- a/src/analyze/systemd-analyze.c
794d16c
+++ b/src/analyze/systemd-analyze.c
794d16c
@@ -507,6 +507,7 @@ static int analyze_plot(DBusConnection *bus) {
794d16c
         /* style sheet */
794d16c
         svg("<defs>\n  <style type=\"text/css\">\n    
794d16c
             "      rect       { stroke-width: 1; stroke-opacity: 0; }\n"
794d16c
+            "      rect.background   { fill: rgb(255,255,255); }\n"
794d16c
             "      rect.activating   { fill: rgb(255,0,0); fill-opacity: 0.7; }\n"
794d16c
             "      rect.active       { fill: rgb(200,150,150); fill-opacity: 0.7; }\n"
794d16c
             "      rect.deactivating { fill: rgb(150,100,100); fill-opacity: 0.7; }\n"
794d16c
@@ -528,6 +529,7 @@ static int analyze_plot(DBusConnection *bus) {
794d16c
             "      text.sec   { font-size: 10px; }\n"
794d16c
             "    ]]>\n   </style>\n</defs>\n\n");
794d16c
 
794d16c
+        svg("<rect class=\"background\" width=\"100%%\" height=\"100%%\" />\n");
794d16c
         svg("<text x=\"20\" y=\"50\">%s</text>", pretty_times);
794d16c
         svg("<text x=\"20\" y=\"30\">%s %s (%s %s) %s</text>",
794d16c
             isempty(osname) ? "Linux" : osname,