Dynamic favicon style 2

https://github.com/marienfressinaud/FreshRSS/issues/539
This commit is contained in:
Alexandre Alapetite
2014-08-07 21:45:52 +02:00
parent eed05c06e9
commit a7632b5429

View File

@@ -1082,7 +1082,7 @@ function faviconNbUnread(n) {
}
ctx.font = 'bold 9px "Arial", sans-serif';
ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';
ctx.fillRect(0, 7, 1 + ctx.measureText(text).width, 9);
ctx.fillRect(0, 7, ctx.measureText(text).width, 9);
ctx.fillStyle = '#F00';
ctx.fillText(text, 0, canvas.height - 1);
}