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:
@@ -189,15 +189,12 @@ class MainActivity : AppCompatActivity() {
|
|||||||
B.searchFab.visibility = View.VISIBLE
|
B.searchFab.visibility = View.VISIBLE
|
||||||
B.navView.visibility = View.VISIBLE
|
B.navView.visibility = View.VISIBLE
|
||||||
B.toolbar.visibility = View.VISIBLE
|
B.toolbar.visibility = View.VISIBLE
|
||||||
window.navigationBarColor = SurfaceColors.SURFACE_2.getColor(this)
|
|
||||||
}
|
}
|
||||||
R.id.appDetailsFragment -> {
|
R.id.appDetailsFragment -> {
|
||||||
hideTopLevelOnlyViews()
|
hideTopLevelOnlyViews()
|
||||||
window.navigationBarColor = this.accentColor()
|
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
hideTopLevelOnlyViews()
|
hideTopLevelOnlyViews()
|
||||||
window.navigationBarColor = getStyledAttributeColor(android.R.attr.colorBackground)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ abstract class BaseBottomSheet : BottomSheetDialogFragment() {
|
|||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
val bottomSheetDialog = BottomSheetDialog(
|
val bottomSheetDialog = BottomSheetDialog(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
R.style.AppTheme_BottomSheet
|
R.style.Theme_Material3_DayNight_BottomSheetDialog
|
||||||
)
|
)
|
||||||
|
|
||||||
VM = SheetBaseBinding.inflate(layoutInflater)
|
VM = SheetBaseBinding.inflate(layoutInflater)
|
||||||
|
|||||||
@@ -111,8 +111,4 @@
|
|||||||
<style name="AppTheme.SwitchPreference" parent="@style/Preference.SwitchPreferenceCompat.Material">
|
<style name="AppTheme.SwitchPreference" parent="@style/Preference.SwitchPreferenceCompat.Material">
|
||||||
<item name="widgetLayout">@layout/preference_material_switch</item>
|
<item name="widgetLayout">@layout/preference_material_switch</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppTheme.BottomSheet" parent="ThemeOverlay.Material3.DayNight.BottomSheetDialog">
|
|
||||||
<item name="android:navigationBarColor">?colorSurface</item>
|
|
||||||
</style>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user