Make navigation Bar Fully Transparent (#381)

* Make navigation Bar Fully Transparent

* if the theme color is white then don't use the light navigation bar

* fixes navigation bar visibility in light mode
This commit is contained in:
Ishan09811 2024-01-29 19:34:45 +05:30 committed by GitHub
parent c6d0769a95
commit fdc8bfd58e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,11 @@
<item name="android:textSize">32sp</item>
</style>
<style name="Theme.Pandroid" parent="Base.Theme.Pandroid" />
<style name="Theme.Pandroid" parent="Base.Theme.Pandroid">
<item name="android:enforceNavigationBarContrast">false</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentNavigation">false</item>
</style>
<style name="Theme.Pandroid.Custom" parent="Theme.Pandroid">
<item name="android:textColor">?colorOnSurface</item>
@ -54,6 +58,7 @@
<item name="android:textColorPrimary">@color/text_secondary_light</item>
<item name="android:textColorSecondary">@color/text_secondary_light</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="Theme.Pandroid.Black" parent="Theme.Pandroid.Custom">
@ -72,6 +77,7 @@
<item name="android:textColorPrimary">@color/text_secondary_light</item>
<item name="android:textColorSecondary">@color/text_secondary_light</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="Theme.Pandroid.Light" parent="Theme.Pandroid.Custom">
@ -90,6 +96,7 @@
<item name="android:windowLightStatusBar">true</item>
<item name="android:textColorPrimary">@color/text_secondary_dark</item>
<item name="android:textColorSecondary">@color/text_secondary_dark</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
</resources>
</resources>