[修复] 修复次行缩放功能

This commit is contained in:
HapeLee
2026-02-02 21:11:33 +08:00
parent 6275488e00
commit 62e87b0a60
@@ -47,11 +47,15 @@ data class TextColumn(
} else {
ChapterProvider.contentPaint
}
val textColor = if (textLine.isReadAloud || isSearchResult) {
val textColor = if (!textLine.useUnderline && (textLine.isReadAloud || isSearchResult)) {
ReadBookConfig.textAccentColor
} else {
ReadBookConfig.textColor
}
val originalSize = textPaint.textSize
textLine.titleTextSize?.let {
textPaint.textSize = it
}
if (textPaint.color != textColor) {
textPaint.color = textColor
}
@@ -66,6 +70,7 @@ data class TextColumn(
if (selected) {
canvas.drawRect(start, 0f, end, textLine.height, view.selectedPaint)
}
textPaint.textSize = originalSize
}
}