diff --git a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt index d26f67bbd..0dc5e2f18 100644 --- a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -96,6 +96,7 @@ object ReadBookConfig { var paddingLeft: Int = 16, var paddingRight: Int = 16, var paddingTop: Int = 0, + var textBold: Boolean = false, var textColor: String = "#3E3D3B", var textSize: Int = 15 ) { diff --git a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt index dfa912836..bd80e8136 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt @@ -49,6 +49,7 @@ class ContentView : FrameLayout { content_text_view.textSize = textSize.toFloat() content_text_view.setLineSpacing(lineSpacingExtra, lineSpacingMultiplier) content_text_view.letterSpacing = letterSpacing + content_text_view.paint.isFakeBoldText = textBold textColor().let { content_text_view.setTextColor(it) tv_top_left.setTextColor(it)