Pārlūkot izejas kodu

Make transparent images, and use CSS to choose the background color.

Heikki Hokkanen 18 gadus atpakaļ
vecāks
revīzija
dd622da0d0
2 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 1
    1
      statgit
  2. 5
    0
      statgit.css

+ 1
- 1
statgit Parādīt failu

@@ -7,7 +7,7 @@ import os
7 7
 import re
8 8
 import sys
9 9
 
10
-GNUPLOT_COMMON = 'set terminal png\nset size 0.5,0.5\n'
10
+GNUPLOT_COMMON = 'set terminal png transparent\nset size 0.5,0.5\n'
11 11
 
12 12
 def getoutput(cmd):
13 13
 	print '>> %s' % cmd

+ 5
- 0
statgit.css Parādīt failu

@@ -75,3 +75,8 @@ td {
75 75
 	border-bottom: 1px solid #cc9;
76 76
 }
77 77
 
78
+img {
79
+	border: 1px solid black;
80
+	padding: 0.5em;
81
+	background-color: white;
82
+}