This commit is contained in:
Horis
2023-09-27 11:55:28 +08:00
parent 6e13237a3d
commit 6c8aee979f
@@ -37,15 +37,15 @@ data class ReviewColumn(
path.lineTo(start + height / 6, baseLine) path.lineTo(start + height / 6, baseLine)
path.lineTo(start + height / 6, baseLine - height / 4) path.lineTo(start + height / 6, baseLine - height / 4)
path.close() path.close()
ChapterProvider.reviewPaint.style = Paint.Style.STROKE val reviewPaint = ChapterProvider.reviewPaint
canvas.drawPath(path, ChapterProvider.reviewPaint) reviewPaint.style = Paint.Style.STROKE
ChapterProvider.reviewPaint.style = Paint.Style.FILL canvas.drawPath(path, reviewPaint)
val textWidth = StaticLayout.getDesiredWidth(countText, ChapterProvider.reviewPaint) reviewPaint.style = Paint.Style.FILL
canvas.drawText( canvas.drawText(
countText, countText,
start + height / 6 + textWidth * 0.45f, (start + height / 9 + end) / 2,
baseLine - height / 5, baseLine - height * 0.23f,
ChapterProvider.reviewPaint reviewPaint
) )
} }