From e360ea68ba75b2a236365be965bf0c5b35b04f4b Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 20 Aug 2019 20:42:32 +0800 Subject: [PATCH] up --- app/src/main/assets/defaultConfig.json | 75 +++++++++++++++++++ .../java/io/legado/app/help/ReadBookConfig.kt | 25 +++++++ .../java/io/legado/app/help/ReadBookHelp.kt | 10 --- 3 files changed, 100 insertions(+), 10 deletions(-) create mode 100644 app/src/main/assets/defaultConfig.json create mode 100644 app/src/main/java/io/legado/app/help/ReadBookConfig.kt delete mode 100644 app/src/main/java/io/legado/app/help/ReadBookHelp.kt diff --git a/app/src/main/assets/defaultConfig.json b/app/src/main/assets/defaultConfig.json new file mode 100644 index 000000000..24eb3c894 --- /dev/null +++ b/app/src/main/assets/defaultConfig.json @@ -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 + } + ] +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt new file mode 100644 index 000000000..30159af98 --- /dev/null +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -0,0 +1,25 @@ +package io.legado.app.help + +import android.graphics.drawable.Drawable + +object ReadBookConfig { + val configList = arrayListOf() + 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 + ) + +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/help/ReadBookHelp.kt b/app/src/main/java/io/legado/app/help/ReadBookHelp.kt deleted file mode 100644 index 2a79820f7..000000000 --- a/app/src/main/java/io/legado/app/help/ReadBookHelp.kt +++ /dev/null @@ -1,10 +0,0 @@ -package io.legado.app.help - -import android.graphics.drawable.Drawable - -object ReadBookHelp { - - var bg: Drawable? = null - - -} \ No newline at end of file