feat: 优化代码

pull/97/head
kunfei 5 years ago
parent 404660526f
commit 481698285b
  1. 4
      app/src/main/assets/readConfig.json
  2. 1
      app/src/main/java/io/legado/app/help/ReadBookConfig.kt

@ -1,7 +1,7 @@
[
{
"bgStr": "#EBD9BB",
"bgStrNight": "#3C3F43",
"bgStrNight": "#1E2021",
"textColor": "#63543C",
"textColorNight": "#DCDFE1",
"bgType": 0,
@ -18,7 +18,7 @@
},
{
"bgStr": "#DDC090",
"bgStrNight": "#1E2021",
"bgStrNight": "#3C3F43",
"textColor": "#3E3422",
"textColorNight": "#DCDFE1",
"bgType": 0,

@ -79,6 +79,7 @@ object ReadBookConfig {
getDefaultConfigs()[styleSelect].let {
getConfig().setBg(it.bgType(), it.bgStr())
getConfig().setTextColor(it.textColor())
upBg()
save()
}
}

Loading…
Cancel
Save