aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-07 21:33:38 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-07 21:33:38 +0200
commiteed05c06e98b22d5d68e21028dc22956c86ba75f (patch)
tree6c12389b2940827a3d49b70fb77417fc08648771 /p/scripts
parent83b8af59e506b4c0f0784e767ed3da633243406e (diff)
Dynamic favicon style
A bit more transparency in the background of the text https://github.com/marienfressinaud/FreshRSS/issues/539
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 762b2e58e..9b47e52d2 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1081,10 +1081,10 @@ function faviconNbUnread(n) {
text = 'E' + Math.floor(Math.log10(n));
}
ctx.font = 'bold 9px "Arial", sans-serif';
- ctx.fillStyle = 'rgba(255, 255, 255, 127)';
- ctx.fillRect(0, 8, 1 + ctx.measureText(text).width, 7);
+ ctx.fillStyle = 'rgba(255, 255, 255, 0.8)';
+ ctx.fillRect(0, 7, 1 + ctx.measureText(text).width, 9);
ctx.fillStyle = '#F00';
- ctx.fillText(text, 0, canvas.height);
+ ctx.fillText(text, 0, canvas.height - 1);
}
link.href = canvas.toDataURL('image/png');
$('link[rel~=icon]').remove();