1
0
Fork 0
mirror of https://github.com/Luzifer/badge-gen.git synced 2024-11-08 13:20:02 +00:00

Formatted source in a better way

This commit is contained in:
Knut Ahlers 2015-05-25 16:11:59 +02:00
parent 6ba36aeb82
commit 350c858160
2 changed files with 45 additions and 43 deletions

View file

@ -1,20 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" width="{{ .Width }}" height="20">
<linearGradient id="b" x2="0" y2="100%">
<stop offset="0" stop-color="#bbb" stop-opacity=".1" />
<stop offset="1" stop-opacity=".1" />
<stop offset="1" stop-opacity=".1" />
</linearGradient>
<mask id="a">
<rect width="{{ .Width }}" height="20" rx="3" fill="#fff" />
</mask>
<g mask="url(#a)">
<path fill="#555" d="M0 0 h{{ .TitleWidth }} v20 H0 z" />
<path fill="#{{ .Color }}" d="M{{ .TitleWidth }} 0 H{{ .Width }} v20 H{{ .TitleWidth }} z" />
<path fill="url(#b)" d="M0 0 h{{ .Width }} v20 H0 z" />
<path fill="#555" d="M0 0 h{{ .TitleWidth }} v20 H0 z" />
<path fill="#{{ .Color }}" d="M{{ .TitleWidth }} 0 H{{ .Width }} v20 H{{ .TitleWidth }} z" />
<path fill="url(#b)" d="M0 0 h{{ .Width }} v20 H0 z" />
</g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="{{ .TitleAnchor }}" y="15" fill="#010101" fill-opacity=".3">{{ .Title }}</text>
<text x="{{ .TitleAnchor }}" y="14">{{ .Title }}</text>
<text x="{{ .TextAnchor }}" y="15" fill="#010101" fill-opacity=".3">{{ .Text }}</text>
<text x="{{ .TextAnchor }}" y="14">{{ .Text }}</text>
<text x="{{ .TitleAnchor }}" y="14" >{{ .Title }}</text>
<text x="{{ .TextAnchor }}" y="15" fill="#010101" fill-opacity=".3">{{ .Text }}</text>
<text x="{{ .TextAnchor }}" y="14" >{{ .Text }}</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -27,42 +27,44 @@ func bindata_read(data []byte, name string) ([]byte, error) {
func assets_badgetemplate_tpl() ([]byte, error) {
return bindata_read([]byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0x9c, 0x93,
0x51, 0x6f, 0xd3, 0x30, 0x10, 0xc7, 0xdf, 0xf7, 0x29, 0x4e, 0x37, 0x21,
0x31, 0xa9, 0xad, 0x9d, 0x76, 0x7d, 0x41, 0x71, 0x25, 0x04, 0xd2, 0x78,
0xe1, 0x09, 0x34, 0x9e, 0x9d, 0xc6, 0x4e, 0x0c, 0xae, 0x53, 0xd9, 0x5e,
0x93, 0x6d, 0xda, 0x77, 0xc7, 0x76, 0xb2, 0x26, 0x50, 0x2a, 0x0a, 0xea,
0x43, 0x2f, 0xd7, 0xfb, 0xff, 0xee, 0x7f, 0x77, 0x4d, 0xee, 0x0e, 0x15,
0x74, 0x3b, 0x6d, 0x1c, 0xc3, 0xda, 0xfb, 0xfd, 0x3b, 0x42, 0xda, 0xb6,
0x5d, 0xb4, 0xab, 0x45, 0x63, 0x2b, 0xb2, 0xa4, 0x94, 0x92, 0x50, 0x81,
0xd0, 0xaa, 0xd2, 0xd7, 0x0c, 0x9f, 0x9f, 0x61, 0xf1, 0x2d, 0x86, 0xf0,
0xf2, 0x82, 0x50, 0x0b, 0x55, 0xd5, 0x9e, 0xe1, 0x92, 0xe2, 0xe6, 0x0a,
0x00, 0x72, 0xad, 0x8c, 0xe0, 0xf6, 0xce, 0xf2, 0x52, 0x09, 0xe3, 0x41,
0x95, 0x0c, 0x0b, 0x84, 0x6e, 0xc9, 0x90, 0x22, 0x3c, 0x86, 0xaf, 0x8c,
0xd2, 0x37, 0x7d, 0x6d, 0x2c, 0x77, 0xbe, 0xd9, 0x43, 0x23, 0xa5, 0x13,
0x3e, 0x55, 0xc4, 0xe7, 0xf9, 0xb6, 0xd1, 0x8d, 0x65, 0x78, 0x5d, 0x14,
0xc5,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