Cleanup unused code for monospace version

pull/3/head
Amio 2018-06-23 17:03:26 +08:00
rodzic 7e1dfac370
commit 7d1183eb16
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -4,15 +4,11 @@ const colorPresets = require('./color-presets.js')
module.exports = function ({subject, status, color}) {
color = colorPresets[color] || color || colorPresets['green']
// const charWidth = 7.3
const sbTextWidth = calcWidth(subject)
// const sbTextWidth = subject.length * charWidth
const sbRectWidth = sbTextWidth + 10
const sbTextCenter = sbRectWidth / 2
const stTextWidth = calcWidth(status)
// const stTextWidth = status.length * charWidth
const stRectWidth = stTextWidth + 12
const stTextCenter = sbRectWidth + stRectWidth / 2 - 1