pull/32/head
kunfei 5 years ago
parent 77433fc65e
commit 11eaa35d86
  1. 1
      app/src/main/java/io/legado/app/help/ReadBookConfig.kt
  2. 1
      app/src/main/java/io/legado/app/ui/widget/page/ContentView.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
) {

@ -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)

Loading…
Cancel
Save