This commit is contained in:
Dragon Fire
2024-04-28 15:18:04 -04:00
parent 1ba177095f
commit 32b18ca0c4
+6 -1
View File
@@ -128,10 +128,15 @@ module.exports = class TweetCommand extends Command {
labelCtx.clip();
labelCtx.drawImage(labelImg, 5, 5, 20, 20);
this.roundedPath(labelCtx, 3, 0, 0, 30, 30);
labelCtx.save();
labelCtx.beginPath();
labelCtx.rect(0, 0, 30, 30);
labelCtx.clip();
labelCtx.strokeStyle = '#303336';
labelCtx.lineWidth = 5;
labelCtx.stroke();
ctx.drawImage(labelCanvas, 80 + nameLen + 3 + 20 + 3, 90, 20, 20);
labelCtx.restore();
ctx.drawImage(labelCanvas, 80 + nameLen + 3 + 20 + 3, 90, 30, 30);
}
ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(17);
ctx.fillStyle = '#71767b';