mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Fix alert font size
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = class AlertCommand extends Command {
|
|||||||
const canvas = createCanvas(base.width, base.height);
|
const canvas = createCanvas(base.width, base.height);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.font = '28px SF Pro';
|
ctx.font = '30px SF Pro';
|
||||||
ctx.fillStyle = '#1f1f1f';
|
ctx.fillStyle = '#1f1f1f';
|
||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
let text = await wrapText(ctx, message, 540);
|
let text = await wrapText(ctx, message, 540);
|
||||||
|
|||||||
Reference in New Issue
Block a user