mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-25 05:37:56 -05:00
Dynamic favicon style 2
https://github.com/marienfressinaud/FreshRSS/issues/539
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user