[修复] 修复次行缩放功能
This commit is contained in:
1 file changed
+6
-1
@@ -47,11 +47,15 @@ data class TextColumn(
|
|||||||
} else {
|
} else {
|
||||||
ChapterProvider.contentPaint
|
ChapterProvider.contentPaint
|
||||||
}
|
}
|
||||||
val textColor = if (textLine.isReadAloud || isSearchResult) {
|
val textColor = if (!textLine.useUnderline && (textLine.isReadAloud || isSearchResult)) {
|
||||||
ReadBookConfig.textAccentColor
|
ReadBookConfig.textAccentColor
|
||||||
} else {
|
} else {
|
||||||
ReadBookConfig.textColor
|
ReadBookConfig.textColor
|
||||||
}
|
}
|
||||||
|
val originalSize = textPaint.textSize
|
||||||
|
textLine.titleTextSize?.let {
|
||||||
|
textPaint.textSize = it
|
||||||
|
}
|
||||||
if (textPaint.color != textColor) {
|
if (textPaint.color != textColor) {
|
||||||
textPaint.color = textColor
|
textPaint.color = textColor
|
||||||
}
|
}
|
||||||
@@ -66,6 +70,7 @@ data class TextColumn(
|
|||||||
if (selected) {
|
if (selected) {
|
||||||
canvas.drawRect(start, 0f, end, textLine.height, view.selectedPaint)
|
canvas.drawRect(start, 0f, end, textLine.height, view.selectedPaint)
|
||||||
}
|
}
|
||||||
|
textPaint.textSize = originalSize
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user