diff --git a/gadget/scripts/wakatime.js b/gadget/scripts/wakatime.js index 1c14716..b0b165b 100644 --- a/gadget/scripts/wakatime.js +++ b/gadget/scripts/wakatime.js @@ -16,16 +16,16 @@ function createTextOverlay(string) { var context = canvas.getContext('2d'); // Draw background - context.fillStyle = '#BBB'; - context.fillRect(0,0,166,50); + //context.fillStyle = '#BBB'; + //context.fillRect(0,0,166,50); // Draw text context.font = '16pt Impact'; context.lineWidth = 6; context.lineStyle = '#000'; context.fillStyle = '#FFF'; - context.textAlign = 'center'; - context.textBaseline = 'bottom'; + context.textAlign = 'left'; + context.textBaseline = 'top'; context.strokeText(string, canvas.width / 2, canvas.height / 2); context.fillText(string, canvas.width / 2, canvas.height / 2); diff --git a/public/wakatime.xml b/public/wakatime.xml index bab7019..dbabfaa 100644 --- a/public/wakatime.xml +++ b/public/wakatime.xml @@ -62,16 +62,16 @@ function createTextOverlay(string) { var context = canvas.getContext('2d'); // Draw background - context.fillStyle = '#BBB'; - context.fillRect(0,0,166,50); + //context.fillStyle = '#BBB'; + //context.fillRect(0,0,166,50); // Draw text context.font = '16pt Impact'; context.lineWidth = 6; context.lineStyle = '#000'; context.fillStyle = '#FFF'; - context.textAlign = 'center'; - context.textBaseline = 'bottom'; + context.textAlign = 'left'; + context.textBaseline = 'top'; context.strokeText(string, canvas.width / 2, canvas.height / 2); context.fillText(string, canvas.width / 2, canvas.height / 2);