From f5f9e9761f2238e2a7e5268d15014fece63d2dba Mon Sep 17 00:00:00 2001 From: Jeena Date: Thu, 22 May 2014 22:15:06 +0200 Subject: [PATCH] fixed circle text color on white --- js/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/App.js b/js/App.js index f5f0db6..c471b72 100644 --- a/js/App.js +++ b/js/App.js @@ -260,6 +260,7 @@ App.prototype.updatePieChart = function() { var bg = window.getComputedStyle($("body"), null).backgroundColor; var fg = window.getComputedStyle($(".bar"), null).backgroundColor; + var tx = window.getComputedStyle($(".bar"), null).color; var myColor = [bg, fg]; @@ -284,7 +285,7 @@ App.prototype.updatePieChart = function() { if(all > 0) { ctx.font = "12px FeuraSans, sans-serif"; - ctx.fillStyle = "#fff"; + ctx.fillStyle = tx; ctx.textAlign = "center"; var text = unread + "/" + all; var x = canvas.width / 2;