From f9d5fe89224b3356f3d35e32c52db8f3ffdf3cde Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 30 Nov 2020 14:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/book/read/page/ContentView.kt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt index bc4f8d0e3..278b1bfea 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt @@ -64,14 +64,15 @@ class ContentView(context: Context) : FrameLayout(context) { tv_footer_left.typeface = ChapterProvider.typeface tv_footer_middle.typeface = ChapterProvider.typeface tv_footer_right.typeface = ChapterProvider.typeface - bv_header_left.setColor(textColor) - tv_header_left.setColor(textColor) - tv_header_middle.setColor(textColor) - tv_header_right.setColor(textColor) - bv_footer_left.setColor(textColor) - tv_footer_left.setColor(textColor) - tv_footer_middle.setColor(textColor) - tv_footer_right.setColor(textColor) + val tipColor = if (ReadTipConfig.tipColor == 0) textColor else ReadTipConfig.tipColor + bv_header_left.setColor(tipColor) + tv_header_left.setColor(tipColor) + tv_header_middle.setColor(tipColor) + tv_header_right.setColor(tipColor) + bv_footer_left.setColor(tipColor) + tv_footer_left.setColor(tipColor) + tv_footer_middle.setColor(tipColor) + tv_footer_right.setColor(tipColor) upStatusBar() ll_header.setPadding( headerPaddingLeft.dp,