pull/32/head
kunfei 5 years ago
parent 8e626e68ff
commit 3f1399b48a
  1. 4
      app/src/main/java/io/legado/app/help/ReadBookConfig.kt
  2. 4
      app/src/main/java/io/legado/app/ui/readbook/config/ReadStyleDialog.kt

@ -116,12 +116,12 @@ object ReadBookConfig {
else Color.parseColor(textColor)
}
private fun bgStr(): String {
fun bgStr(): String {
return if (App.INSTANCE.isNightTheme) bgStrNight
else bgStr
}
private fun bgType(): Int {
fun bgType(): Int {
return if (App.INSTANCE.isNightTheme) bgTypeNight
else bgType
}

@ -216,9 +216,9 @@ class ReadStyleDialog : DialogFragment() {
else -> bg0
}
ReadBookConfig.getConfig(i).apply {
when (bgType) {
when (bgType()) {
2 -> {
ImageLoader.load(requireContext(), bgStr)
ImageLoader.load(requireContext(), bgStr())
.centerCrop()
.setAsFile(iv)
}

Loading…
Cancel
Save