mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Remove "View Tweet Activity"
This commit is contained in:
@@ -104,24 +104,24 @@ module.exports = class TweetCommand extends Command {
|
||||
ctx.fillText('Twitter for Xiao', 31 + timeLen + 6, base2StartY + 16);
|
||||
ctx.fillStyle = '#8899a6';
|
||||
ctx.font = '16px Noto';
|
||||
ctx.fillText(this.formatNumber(replies), 87, base2StartY + 203);
|
||||
ctx.fillText(this.formatNumber(likes), 509, base2StartY + 203);
|
||||
ctx.fillText(this.formatNumber(retweets), 300, base2StartY + 203);
|
||||
ctx.fillText(this.formatNumber(replies), 87, base2StartY + 139);
|
||||
ctx.fillText(this.formatNumber(likes), 509, base2StartY + 139);
|
||||
ctx.fillText(this.formatNumber(retweets), 300, base2StartY + 139);
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.font = 'normal bold 18px Noto';
|
||||
ctx.fillText(this.formatNumber(retweets), 31, base2StartY + 141);
|
||||
ctx.fillText(this.formatNumber(retweets), 31, base2StartY + 77);
|
||||
const retweetsLen = ctx.measureText(this.formatNumber(retweets)).width;
|
||||
ctx.fillStyle = '#8899a6';
|
||||
ctx.font = '18px Noto';
|
||||
ctx.fillText('Retweets', 31 + retweetsLen + 5, base2StartY + 141);
|
||||
ctx.fillText('Retweets', 31 + retweetsLen + 5, base2StartY + 77);
|
||||
const retweetsWordLen = ctx.measureText('Retweets').width;
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.font = 'normal bold 18px Noto';
|
||||
ctx.fillText(this.formatNumber(likes), 31 + retweetsLen + 5 + retweetsWordLen + 10, base2StartY + 141);
|
||||
ctx.fillText(this.formatNumber(likes), 31 + retweetsLen + 5 + retweetsWordLen + 10, base2StartY + 77);
|
||||
const likesLen = ctx.measureText(this.formatNumber(likes)).width;
|
||||
ctx.fillStyle = '#8899a6';
|
||||
ctx.font = '18px Noto';
|
||||
ctx.fillText('Likes', 31 + retweetsLen + 5 + retweetsWordLen + 10 + likesLen + 5, base2StartY + 141);
|
||||
ctx.fillText('Likes', 31 + retweetsLen + 5 + retweetsWordLen + 10 + likesLen + 5, base2StartY + 77);
|
||||
ctx.beginPath();
|
||||
ctx.arc(30 + 32, 84 + 32, 32, 0, Math.PI * 2);
|
||||
ctx.closePath();
|
||||
|
||||
Reference in New Issue
Block a user