Skip to content

Commit

Permalink
full height progress
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Sep 5, 2023
1 parent 2289af1 commit 7291aad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions org.inventivetalent.teamcity.sdPlugin/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,9 @@ const action = {
ctx.fillRect(0, 0, canvas.width, canvas.height);

if (progress > 0) {
ctx.fillStyle = 'rgba(0,255,0,0.5)';
ctx.fillRect(0, canvas.height - 10, canvas.width * progress / 100, 10);
ctx.fillStyle = 'rgba(0,192,0,0.5)';
ctx.fillRect(0, 0, canvas.width * progress / 100, canvas.height);
// ctx.fillRect(0, canvas.height - 8, canvas.width * progress / 100, 5);
}

ctx.shadowBlur = 3;
Expand All @@ -245,16 +246,16 @@ const action = {

ctx.font = '14px ' + (this.settings.font || 'system-ui')
this.autoFontSize(canvas, ctx, '' + name, 16);
ctx.fillText('' + name, canvas.width / 2, canvas.height * 0.2, canvas.width);
ctx.fillText('' + name, canvas.width / 2, canvas.height * 0.3, canvas.width);

ctx.font = '12px ' + (this.settings.font || 'system-ui')
this.autoFontSize(canvas, ctx, '' + branch, 14);
ctx.fillText('' + branch, canvas.width / 2, canvas.height * 0.4, canvas.width);
ctx.fillText('' + branch, canvas.width / 2, canvas.height * 0.5, canvas.width);

ctx.font = '18px ' + (this.settings.font || 'system-ui');
ctx.textBaseline = 'middle';
this.autoFontSize(canvas, ctx, '' + status, 20);
ctx.fillText('' + status, canvas.width / 2, canvas.height * 0.6, canvas.width);
ctx.fillText('' + status, canvas.width / 2, canvas.height * 0.7, canvas.width);
})

// this.setTitle(title);
Expand Down

0 comments on commit 7291aad

Please sign in to comment.