summaryrefslogtreecommitdiff
path: root/src/bootchart/svg.c
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@suse.com>2014-06-16 18:49:12 +0200
committerTom Gundersen <teg@jklm.no>2014-06-17 11:34:31 +0200
commita7997073ac07add6cb30dcd9491c0179b2d6ad52 (patch)
treebea0a342f74393416b607a990b3e0ab09f45f649 /src/bootchart/svg.c
parentbf0308cbd5362c697fe4df82b2e8b9adc743eb6c (diff)
bootchart: set white background
In programs like eog and gimp the transparant background did not look very good. Similar fix from the one done in systemd-analyze (418e3750)
Diffstat (limited to 'src/bootchart/svg.c')
-rw-r--r--src/bootchart/svg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index a53f98a941..8121199529 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -123,6 +123,7 @@ static void svg_header(void) {
svg("<defs>\n <style type=\"text/css\">\n <![CDATA[\n");
svg(" rect { stroke-width: 1; }\n");
+ svg(" rect.bg { fill: rgb(255,255,255); }\n");
svg(" rect.cpu { fill: rgb(64,64,240); stroke-width: 0; fill-opacity: 0.7; }\n");
svg(" rect.wait { fill: rgb(240,240,0); stroke-width: 0; fill-opacity: 0.7; }\n");
svg(" rect.bi { fill: rgb(240,128,128); stroke-width: 0; fill-opacity: 0.7; }\n");
@@ -1270,6 +1271,7 @@ void svg_do(const char *build) {
/* after this, we can draw the header with proper sizing */
svg_header();
+ svg("<rect class=\"bg\" width=\"100%%\" height=\"100%%\" />\n\n");
svg("<g transform=\"translate(10,400)\">\n");
svg_io_bi_bar();