diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-10-21 21:29:23 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2013-10-21 21:36:15 +0200 |
commit | 418e37506e6a419a808a82081ca1616caa03a206 (patch) | |
tree | fda8dbc88edd5cfe1e77c75410dfa36a19374f4f | |
parent | 3a82ac4cfdbcade1f5d2bdbe5f96209bd3d14bef (diff) |
analyze: set white backgound
In programs like eog and gimp the transparant background did not
look very good.
https://bugs.freedesktop.org/show_bug.cgi?id=70720
-rw-r--r-- | src/analyze/systemd-analyze.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyze/systemd-analyze.c b/src/analyze/systemd-analyze.c index 26769d6c37..0cc4de76cd 100644 --- a/src/analyze/systemd-analyze.c +++ b/src/analyze/systemd-analyze.c @@ -507,6 +507,7 @@ static int analyze_plot(DBusConnection *bus) { /* style sheet */ svg("<defs>\n <style type=\"text/css\">\n <![CDATA[\n" " rect { stroke-width: 1; stroke-opacity: 0; }\n" + " rect.background { fill: rgb(255,255,255); }\n" " rect.activating { fill: rgb(255,0,0); fill-opacity: 0.7; }\n" " rect.active { fill: rgb(200,150,150); fill-opacity: 0.7; }\n" " rect.deactivating { fill: rgb(150,100,100); fill-opacity: 0.7; }\n" @@ -528,6 +529,7 @@ static int analyze_plot(DBusConnection *bus) { " text.sec { font-size: 10px; }\n" " ]]>\n </style>\n</defs>\n\n"); + svg("<rect class=\"background\" width=\"100%%\" height=\"100%%\" />\n"); svg("<text x=\"20\" y=\"50\">%s</text>", pretty_times); svg("<text x=\"20\" y=\"30\">%s %s (%s %s) %s</text>", isempty(osname) ? "Linux" : osname, |