|
|
@ -3,13 +3,18 @@ package io.legado.app.help |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
|
|
|
|
|
|
|
|
object ReadBookConfig { |
|
|
|
object ReadBookConfig { |
|
|
|
val configList = arrayListOf<Config>() |
|
|
|
private val configList = arrayListOf<Config>() |
|
|
|
|
|
|
|
var styleSelect = 0 |
|
|
|
var bg: Drawable? = null |
|
|
|
var bg: Drawable? = null |
|
|
|
|
|
|
|
|
|
|
|
init { |
|
|
|
init { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun getConfig(): Config { |
|
|
|
|
|
|
|
return configList[styleSelect] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
data class Config( |
|
|
|
data class Config( |
|
|
|
var bg: String = "#F3F3F3", |
|
|
|
var bg: String = "#F3F3F3", |
|
|
|
var bgInt: Int = 0, |
|
|
|
var bgInt: Int = 0, |
|
|
|