Skip to content

Commit

Permalink
Transparent background
Browse files Browse the repository at this point in the history
  • Loading branch information
vidakovic committed Feb 5, 2015
1 parent 6ae9f6c commit ac087eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions gadget/scripts/wakatime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
8 changes: 4 additions & 4 deletions public/wakatime.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ac087eb

Please sign in to comment.