From df27138401a00d2251572b6b9fdfd61982cfaeee Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 10 Apr 2020 18:07:23 -0400 Subject: [PATCH] Fix webview back/forward button color --- .../main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt index 0464558f9e..3587bf5496 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt @@ -118,7 +118,7 @@ class WebViewActivity : BaseActivity() { backItem?.isEnabled = binding.webview.canGoBack() forwardItem?.isEnabled = binding.webview.canGoForward() - val iconTintColor = getResourceColor(R.attr.colorOnSurface) + val iconTintColor = getResourceColor(R.attr.colorOnPrimary) val translucentIconTintColor = ColorUtils.setAlphaComponent(iconTintColor, 127) backItem.icon?.setTint(if (binding.webview.canGoBack()) iconTintColor else translucentIconTintColor) forwardItem?.icon?.setTint(if (binding.webview.canGoForward()) iconTintColor else translucentIconTintColor)