Drop navigation bar theme improvements

These needs to be tested better as they currently look bad on
old devices

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-08-14 09:44:24 +05:30
parent 901cf0f2e2
commit 8692f87400
3 changed files with 1 additions and 8 deletions

View File

@@ -189,15 +189,12 @@ class MainActivity : AppCompatActivity() {
B.searchFab.visibility = View.VISIBLE
B.navView.visibility = View.VISIBLE
B.toolbar.visibility = View.VISIBLE
window.navigationBarColor = SurfaceColors.SURFACE_2.getColor(this)
}
R.id.appDetailsFragment -> {
hideTopLevelOnlyViews()
window.navigationBarColor = this.accentColor()
}
else -> {
hideTopLevelOnlyViews()
window.navigationBarColor = getStyledAttributeColor(android.R.attr.colorBackground)
}
}
}

View File

@@ -45,7 +45,7 @@ abstract class BaseBottomSheet : BottomSheetDialogFragment() {
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
val bottomSheetDialog = BottomSheetDialog(
requireContext(),
R.style.AppTheme_BottomSheet
R.style.Theme_Material3_DayNight_BottomSheetDialog
)
VM = SheetBaseBinding.inflate(layoutInflater)