mirror of
https://github.com/2dust/v2rayNG.git
synced 2026-10-29 06:31:54 +00:00
Fix navigation bar theme API lint errors (#6259)
This commit is contained in:
1 parent
be1f2cf00b
commit
89f53233cb
4 files changed
+17
-4
No files matched your search
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppThemeBase" parent="AppThemeBaseCommon">
|
||||
<item name="android:windowLightNavigationBar">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Night theme: override window background and status bar flags for dark mode -->
|
||||
<style name="AppThemeBase" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<style name="AppThemeBaseCommon" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||
<item name="android:windowLightStatusBar">false</item>
|
||||
<item name="android:windowLightNavigationBar">false</item>
|
||||
<item name="android:windowBackground">@color/window_background_dark</item>
|
||||
</style>
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppThemeBase" parent="AppThemeBaseCommon">
|
||||
<item name="android:windowLightNavigationBar">true</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -2,14 +2,16 @@
|
||||
<color name="window_background_light">#FFFFFFFF</color>
|
||||
<color name="window_background_dark">#FF1C1B1F</color>
|
||||
|
||||
<style name="AppThemeBase" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<style name="AppThemeBaseCommon" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
||||
<item name="android:windowLightStatusBar">true</item>
|
||||
<item name="android:windowLightNavigationBar">true</item>
|
||||
<item name="android:windowBackground">@color/window_background_light</item>
|
||||
</style>
|
||||
|
||||
<!-- API 27+ adds navigation bar icon appearance in the versioned base theme. -->
|
||||
<style name="AppThemeBase" parent="AppThemeBaseCommon" />
|
||||
|
||||
<style name="AppThemeDayNight" parent="AppThemeBase" />
|
||||
|
||||
<style name="AppThemeDayNight.NoActionBar" parent="AppThemeBase" />
|
||||
|
||||
Reference in new issue
Block a user