Use the same elevation for nav and bottom bar

This commit is contained in:
Bnyro 2023-01-21 11:08:32 +01:00
parent c01cee3f83
commit 87519742da

View File

@ -97,7 +97,7 @@ class MainActivity : BaseActivity() {
// sets the navigation bar color to the previously calculated color
window.navigationBarColor = if (binding.bottomNav.menu.size() > 0) {
SurfaceColors.getColorForElevation(this, 9F)
SurfaceColors.getColorForElevation(this, binding.bottomNav.elevation)
} else {
ThemeHelper.getThemeColor(this, android.R.attr.colorBackground)
}