ActionMode and NavBar colors fix

This commit is contained in:
Zakhar Timoshenko
2023-10-17 18:04:34 +03:00
parent c0e94f8415
commit ed9e2eb4d2
2 changed files with 3 additions and 3 deletions

View File

@@ -126,10 +126,10 @@ abstract class BaseActivity<B : ViewBinding> :
val actionModeColor = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { val actionModeColor = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
ColorUtils.compositeColors( ColorUtils.compositeColors(
ContextCompat.getColor(this, com.google.android.material.R.color.m3_appbar_overlay_color), ContextCompat.getColor(this, com.google.android.material.R.color.m3_appbar_overlay_color),
getThemeColor(com.google.android.material.R.attr.colorSurface), getThemeColor(R.attr.m3ColorBackground),
) )
} else { } else {
ContextCompat.getColor(this, R.color.kotatsu_secondaryContainer) ContextCompat.getColor(this, R.color.kotatsu_m3_background)
} }
val insets = ViewCompat.getRootWindowInsets(viewBinding.root) val insets = ViewCompat.getRootWindowInsets(viewBinding.root)
?.getInsets(WindowInsetsCompat.Type.systemBars()) ?: return ?.getInsets(WindowInsetsCompat.Type.systemBars()) ?: return

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:alpha="0.7" android:color="?attr/m3ColorBackground" /> <item android:alpha="0.7" android:color="?attr/m3ColorBottomMenuBackground" />
</selector> </selector>