Comparison

mod_muc_badge/mod_muc_badge.lua @ 3286:4d1f6d47c889

mod_muc_badge: Reduce the opacity of the text shadows.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Aug 2018 17:55:16 +0200
parent 3285:38892f9f3fe9
child 4982:8a4b17e2e984
comparison
equal deleted inserted replaced
3285:38892f9f3fe9 3286:4d1f6d47c889
48 <path fill="#555" d="M0 0h{labelwidth}v20H0z"/> 48 <path fill="#555" d="M0 0h{labelwidth}v20H0z"/>
49 <path fill="#fe7d37" d="M{labelwidth} 0h{countwidth}v20H{labelwidth}z"/> 49 <path fill="#fe7d37" d="M{labelwidth} 0h{countwidth}v20H{labelwidth}z"/>
50 <path fill="url(#b)" d="M0 0h{width}v20H0z"/> 50 <path fill="url(#b)" d="M0 0h{width}v20H0z"/>
51 </g> 51 </g>
52 <g fill="#fff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11" xml:space="preserve"> 52 <g fill="#fff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11" xml:space="preserve">
53 <text fill="#010101" y="14" x="0" textLength="{labelwidth}">{label}</text> 53 <text fill="#010101" fill-opacity=".3" y="14" x="0" textLength="{labelwidth}">{label}</text>
54 <text y="13" x="0" textLength="{labelwidth}">{label}</text> 54 <text y="13" x="0" textLength="{labelwidth}">{label}</text>
55 <text fill="#010101" y="14" x="{labelwidth}" textLength="{countwidth}">{number}</text> 55 <text fill="#010101" fill-opacity=".3" y="14" x="{labelwidth}" textLength="{countwidth}">{number}</text>
56 <text y="13" x="{labelwidth}" textLength="{countwidth}">{number}</text> 56 <text y="13" x="{labelwidth}" textLength="{countwidth}">{number}</text>
57 </g> 57 </g>
58 </svg> 58 </svg>
59 ]]); 59 ]]);
60 template = assert(require "util.template"(template)); 60 template = assert(require "util.template"(template));