mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 22:41:48 +01:00
Fix webview back/forward button color
This commit is contained in:
parent
7c7d40ea44
commit
df27138401
@ -118,7 +118,7 @@ class WebViewActivity : BaseActivity() {
|
|||||||
backItem?.isEnabled = binding.webview.canGoBack()
|
backItem?.isEnabled = binding.webview.canGoBack()
|
||||||
forwardItem?.isEnabled = binding.webview.canGoForward()
|
forwardItem?.isEnabled = binding.webview.canGoForward()
|
||||||
|
|
||||||
val iconTintColor = getResourceColor(R.attr.colorOnSurface)
|
val iconTintColor = getResourceColor(R.attr.colorOnPrimary)
|
||||||
val translucentIconTintColor = ColorUtils.setAlphaComponent(iconTintColor, 127)
|
val translucentIconTintColor = ColorUtils.setAlphaComponent(iconTintColor, 127)
|
||||||
backItem.icon?.setTint(if (binding.webview.canGoBack()) iconTintColor else translucentIconTintColor)
|
backItem.icon?.setTint(if (binding.webview.canGoBack()) iconTintColor else translucentIconTintColor)
|
||||||
forwardItem?.icon?.setTint(if (binding.webview.canGoForward()) iconTintColor else translucentIconTintColor)
|
forwardItem?.icon?.setTint(if (binding.webview.canGoForward()) iconTintColor else translucentIconTintColor)
|
||||||
|
Loading…
Reference in New Issue
Block a user