diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 488f697bf..d0a20cdc0 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -5,7 +5,7 @@ **2021/01/10** * 修复bug -* +* 朗读时翻页防止重复发送请求 by [litcc](https://github.com/litcc) **2021/01/05** * 修复崩溃bug 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 a73f3d4a2..42a40faab 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,6 +37,7 @@ 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() @@ -65,13 +66,13 @@ class ReadMenu @JvmOverloads constructor( llBrightness.background = brightnessBackground llBottomBg.setBackgroundColor(bgColor) fabSearch.backgroundTintList = bottomBackgroundList - fabSearch.setColorFilter(textColor) + fabSearch.setColorFilter(accentColor) fabAutoPage.backgroundTintList = bottomBackgroundList - fabAutoPage.setColorFilter(textColor) + fabAutoPage.setColorFilter(accentColor) fabReplaceRule.backgroundTintList = bottomBackgroundList - fabReplaceRule.setColorFilter(textColor) + fabReplaceRule.setColorFilter(accentColor) fabNightTheme.backgroundTintList = bottomBackgroundList - fabNightTheme.setColorFilter(textColor) + fabNightTheme.setColorFilter(accentColor) tvPre.setTextColor(textColor) tvNext.setTextColor(textColor) ivCatalog.setColorFilter(textColor) @@ -308,7 +309,7 @@ class ReadMenu @JvmOverloads constructor( fabAutoPage.setImageResource(R.drawable.ic_auto_page) fabAutoPage.contentDescription = context.getString(R.string.auto_next_page) } - fabAutoPage.setColorFilter(textColor) + fabAutoPage.setColorFilter(accentColor) } interface CallBack {