Skip to content

Commit

Permalink
fix: 在线状态字体颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Jan 1, 2025
1 parent 1673774 commit dadeda3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,11 @@ async function renderCanvas (data, minLength) {

if (i.descBgColor) {
drawBackgroundColor(ctx, i.descBgColor, currentX, descY, ctx.measureText(i.desc).width + 10, 20, 10)
ctx.fillStyle = '#ffffff'
} else {
ctx.fillStyle = '#999'
}

ctx.fillStyle = '#999'
ctx.fillText(i.desc, currentX, descY)

// 序号
Expand Down

0 comments on commit dadeda3

Please sign in to comment.