From 51e2ce12cd31f9c9adc494bf074a63919708836f Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 15 Feb 2020 22:34:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/help/ReadBookConfig.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt index 6f980b5b3..85b28f45d 100644 --- a/app/src/main/java/io/legado/app/help/ReadBookConfig.kt +++ b/app/src/main/java/io/legado/app/help/ReadBookConfig.kt @@ -100,6 +100,8 @@ object ReadBookConfig { var darkStatusIconNight: Boolean = false,//晚上是否暗色状态栏 var textColor: String = "#3E3D3B",//白天文字颜色 var textColorNight: String = "#adadad",//夜间文字颜色 + var textBold: Boolean = false,//是否粗体字 + var textSize: Int = 15,//文字大小 var letterSpacing: Float = 1f,//字间距 var lineSpacingExtra: Int = 12,//行间距 var lineSpacingMultiplier: Float = 1.2f,//行倍距 @@ -107,8 +109,14 @@ object ReadBookConfig { var paddingLeft: Int = 16, var paddingRight: Int = 16, var paddingTop: Int = 0, - var textBold: Boolean = false,//是否粗体字 - var textSize: Int = 15//文字大小 + var headerPaddingBottom: Int = 0, + var headerPaddingLeft: Int = 0, + var headerPaddingRight: Int = 0, + var headerPaddingTop: Int = 0, + var footerPaddingBottom: Int = 0, + var footerPaddingLeft: Int = 0, + var footerPaddingRight: Int = 0, + var footerPaddingTop: Int = 0 ) { fun setBg(bgType: Int, bg: String) { if (AppConfig.isNightTheme) {