mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix webview toolbar color when switching system themes
This commit is contained in:
parent
cfedcb7001
commit
4892096f5e
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ open class BaseWebViewActivity : BaseActivity<WebviewActivityBinding>() {
|
|||
255
|
||||
)
|
||||
binding.toolbar.setBackgroundColor(getResourceColor(R.attr.colorSecondary))
|
||||
binding.toolbar.setBackgroundColor(getResourceColor(R.attr.colorSurface))
|
||||
binding.toolbar.popupTheme = if (lightMode) R.style.ThemeOverlay_MaterialComponents else R
|
||||
.style.ThemeOverlay_MaterialComponents_Dark
|
||||
val tintColor = getResourceColor(R.attr.actionBarTintColor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue