app: make toolbars match system bars

This commit is contained in:
Harsh Shandilya 2021-11-02 22:33:49 +05:30
parent 9a00e68ab6
commit f8ad1c97fd
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 6 additions and 0 deletions

View file

@ -36,5 +36,6 @@
<item name="android:windowLightStatusBar">@bool/light_status_bar</item> <item name="android:windowLightStatusBar">@bool/light_status_bar</item>
<item name="android:statusBarColor">?android:colorBackground</item> <item name="android:statusBarColor">?android:colorBackground</item>
<item name="android:navigationBarColor">?android:colorBackground</item> <item name="android:navigationBarColor">?android:colorBackground</item>
<item name="toolbarStyle">@style/APSThemeM3.Toolbar</item>
</style> </style>
</resources> </resources>

View file

@ -36,5 +36,10 @@
<item name="android:windowLightStatusBar">@bool/light_status_bar</item> <item name="android:windowLightStatusBar">@bool/light_status_bar</item>
<item name="android:statusBarColor">?android:colorBackground</item> <item name="android:statusBarColor">?android:colorBackground</item>
<item name="android:navigationBarColor">?android:colorBackground</item> <item name="android:navigationBarColor">?android:colorBackground</item>
<item name="toolbarStyle">@style/APSThemeM3.Toolbar</item>
</style>
<style name="APSThemeM3.Toolbar" parent="Widget.Material3.Toolbar">
<item name="android:background">?android:colorBackground</item>
</style> </style>
</resources> </resources>