From ba40d55de1222611a7da4823f4e164580d02acec Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 10 Jan 2021 16:58:59 +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 --- .../main/java/io/legado/app/ui/book/read/ReadMenu.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt index 42a40faab..a73f3d4a2 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt @@ -37,7 +37,6 @@ class ReadMenu @JvmOverloads constructor( private lateinit var menuTopOut: Animation private lateinit var menuBottomIn: Animation private lateinit var menuBottomOut: Animation - private val accentColor: Int = context.accentColor private val bgColor: Int = context.bottomBackground private val textColor: Int = context.getPrimaryTextColor(ColorUtils.isColorLight(bgColor)) private val bottomBackgroundList: ColorStateList = Selector.colorBuild() @@ -66,13 +65,13 @@ class ReadMenu @JvmOverloads constructor( llBrightness.background = brightnessBackground llBottomBg.setBackgroundColor(bgColor) fabSearch.backgroundTintList = bottomBackgroundList - fabSearch.setColorFilter(accentColor) + fabSearch.setColorFilter(textColor) fabAutoPage.backgroundTintList = bottomBackgroundList - fabAutoPage.setColorFilter(accentColor) + fabAutoPage.setColorFilter(textColor) fabReplaceRule.backgroundTintList = bottomBackgroundList - fabReplaceRule.setColorFilter(accentColor) + fabReplaceRule.setColorFilter(textColor) fabNightTheme.backgroundTintList = bottomBackgroundList - fabNightTheme.setColorFilter(accentColor) + fabNightTheme.setColorFilter(textColor) tvPre.setTextColor(textColor) tvNext.setTextColor(textColor) ivCatalog.setColorFilter(textColor) @@ -309,7 +308,7 @@ class ReadMenu @JvmOverloads constructor( fabAutoPage.setImageResource(R.drawable.ic_auto_page) fabAutoPage.contentDescription = context.getString(R.string.auto_next_page) } - fabAutoPage.setColorFilter(accentColor) + fabAutoPage.setColorFilter(textColor) } interface CallBack {