kopia lustrzana https://github.com/badgen/badgen
Breaking: use blue as default color
rodzic
4dea3f9912
commit
e75f9dbde6
|
@ -2,7 +2,7 @@ const calcWidth = require('./calc-text-width.js').Arial12
|
|||
const colorPresets = require('./color-presets.js')
|
||||
|
||||
module.exports = function ({subject, status, color}) {
|
||||
color = colorPresets[color] || color || colorPresets['green']
|
||||
color = colorPresets[color] || color || colorPresets['blue']
|
||||
|
||||
const sbTextWidth = calcWidth(subject)
|
||||
const sbRectWidth = sbTextWidth + 10
|
||||
|
|
Ładowanie…
Reference in New Issue