kopia lustrzana https://github.com/badgen/badgen
Use Verdana font for better distinguish between l,1,I
rodzic
dad4119aa8
commit
821d08ef6e
|
@ -1,4 +1,4 @@
|
|||
const calcWidth = require('./calc-text-width.js').Arial12
|
||||
const calcWidth = require('./calc-text-width.js').Verdana12
|
||||
const colorPresets = require('./color-presets.js')
|
||||
|
||||
module.exports = function ({subject, status, color}) {
|
||||
|
@ -23,7 +23,7 @@ module.exports = function ({subject, status, color}) {
|
|||
<rect rx="3" x="${sbRectWidth}" width="${stRectWidth}" height="20" fill="#${color}"/>
|
||||
<path fill="#${color}" d="M${sbRectWidth} 0h4v20h-4z"/>
|
||||
<rect rx="3" width="${width}" height="20" fill="url(#a)"/>
|
||||
<g fill="#fff" text-anchor="start" font-family="Arial,sans-serif" font-size="12">
|
||||
<g fill="#fff" text-anchor="start" font-family="DejaVu Sans, Verdana, sans-serif" font-size="12">
|
||||
<text x="6" y="15" textLength="${sbTextWidth}" fill="#000" opacity="0.2">${subject}</text>
|
||||
<text x="5" y="14" textLength="${sbTextWidth}">${subject}</text>
|
||||
<text x="${stTextStart + 1}" y="15" textLength="${stTextWidth}" fill="#000" opacity="0.2">${status}</text>
|
||||
|
|
Ładowanie…
Reference in New Issue