fixed circle text color on white
This commit is contained in:
parent
89142c54c0
commit
f5f9e9761f
1 changed files with 2 additions and 1 deletions
|
@ -260,6 +260,7 @@ App.prototype.updatePieChart = function() {
|
||||||
|
|
||||||
var bg = window.getComputedStyle($("body"), null).backgroundColor;
|
var bg = window.getComputedStyle($("body"), null).backgroundColor;
|
||||||
var fg = window.getComputedStyle($(".bar"), null).backgroundColor;
|
var fg = window.getComputedStyle($(".bar"), null).backgroundColor;
|
||||||
|
var tx = window.getComputedStyle($(".bar"), null).color;
|
||||||
|
|
||||||
var myColor = [bg, fg];
|
var myColor = [bg, fg];
|
||||||
|
|
||||||
|
@ -284,7 +285,7 @@ App.prototype.updatePieChart = function() {
|
||||||
|
|
||||||
if(all > 0) {
|
if(all > 0) {
|
||||||
ctx.font = "12px FeuraSans, sans-serif";
|
ctx.font = "12px FeuraSans, sans-serif";
|
||||||
ctx.fillStyle = "#fff";
|
ctx.fillStyle = tx;
|
||||||
ctx.textAlign = "center";
|
ctx.textAlign = "center";
|
||||||
var text = unread + "/" + all;
|
var text = unread + "/" + all;
|
||||||
var x = canvas.width / 2;
|
var x = canvas.width / 2;
|
||||||
|
|
Reference in a new issue