mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Use the same elevation for nav and bottom bar
This commit is contained in:
parent
c01cee3f83
commit
87519742da
@ -97,7 +97,7 @@ class MainActivity : BaseActivity() {
|
|||||||
|
|
||||||
// sets the navigation bar color to the previously calculated color
|
// sets the navigation bar color to the previously calculated color
|
||||||
window.navigationBarColor = if (binding.bottomNav.menu.size() > 0) {
|
window.navigationBarColor = if (binding.bottomNav.menu.size() > 0) {
|
||||||
SurfaceColors.getColorForElevation(this, 9F)
|
SurfaceColors.getColorForElevation(this, binding.bottomNav.elevation)
|
||||||
} else {
|
} else {
|
||||||
ThemeHelper.getThemeColor(this, android.R.attr.colorBackground)
|
ThemeHelper.getThemeColor(this, android.R.attr.colorBackground)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user