pull/32/head
kunfei 5 years ago
parent f5415575c1
commit e360ea68ba
  1. 75
      app/src/main/assets/defaultConfig.json
  2. 25
      app/src/main/java/io/legado/app/help/ReadBookConfig.kt
  3. 10
      app/src/main/java/io/legado/app/help/ReadBookHelp.kt

@ -0,0 +1,75 @@
{
"readBook": [
{
"bg": "#F3F3F3",
"bgInt": 0,
"bgType": 0,
"darkStatusIcon": true,
"textColor": "#3E3D3B",
"textSize": 16,
"letterSpacing": 1,
"lineSpacingExtra": 15,
"lineSpacingMultiplier": 3
},
{
"bg": "#C6BAA1",
"bgInt": 0,
"bgType": 0,
"darkStatusIcon": true,
"textColor": "#3E3D3B",
"textSize": 16,
"letterSpacing": 1,
"lineSpacingExtra": 15,
"lineSpacingMultiplier": 3,
"paddingLeft": 16,
"paddingRight": 16,
"paddingTop": 0,
"paddingBottom": 0
},
{
"bg": "#E1F1DA",
"bgInt": 0,
"bgType": 0,
"darkStatusIcon": true,
"textColor": "#3E3D3B",
"textSize": 16,
"letterSpacing": 1,
"lineSpacingExtra": 15,
"lineSpacingMultiplier": 3,
"paddingLeft": 16,
"paddingRight": 16,
"paddingTop": 0,
"paddingBottom": 0
},
{
"bg": "#015A86",
"bgInt": 0,
"bgType": 0,
"darkStatusIcon": false,
"textColor": "#3E3D3B",
"textSize": 16,
"letterSpacing": 1,
"lineSpacingExtra": 15,
"lineSpacingMultiplier": 3,
"paddingLeft": 16,
"paddingRight": 16,
"paddingTop": 0,
"paddingBottom": 0
},
{
"bg": "#808080",
"bgInt": 0,
"bgType": 0,
"darkStatusIcon": false,
"textColor": "#3E3D3B",
"textSize": 16,
"letterSpacing": 1,
"lineSpacingExtra": 15,
"lineSpacingMultiplier": 3,
"paddingLeft": 16,
"paddingRight": 16,
"paddingTop": 0,
"paddingBottom": 0
}
]
}

@ -0,0 +1,25 @@
package io.legado.app.help
import android.graphics.drawable.Drawable
object ReadBookConfig {
val configList = arrayListOf<Config>()
var bg: Drawable? = null
init {
}
data class Config(
var bg: String = "#F3F3F3",
var bgInt: Int = 0,
var bgType: Int = 0,
var darkStatusIcon: Boolean = true,
var textColor: String = "#3E3D3B",
var textSize: Int = 16,
var letterSpacing: Int = 1,
var lineSpacingExtra: Int = 15,
var lineSpacingMultiplier: Int = 3
)
}

@ -1,10 +0,0 @@
package io.legado.app.help
import android.graphics.drawable.Drawable
object ReadBookHelp {
var bg: Drawable? = null
}
Loading…
Cancel
Save