fixed circle text color on white

This commit is contained in:
Jeena 2014-05-22 22:15:06 +02:00
parent 89142c54c0
commit f5f9e9761f

View file

@ -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;