Merge pull request #2569 from marcovr/dev

Black navigation bar for black theme
This commit is contained in:
Tobias Groza 2019-12-12 18:32:49 +01:00 committed by GitHub
commit 6029e18980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.V27.DarkTheme" parent="Base.V7.DarkTheme">
<item name="android:navigationBarColor">@color/dark_background_color</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="Base.DarkTheme" parent="Base.V27.DarkTheme" />
<style name="Base.V27.BlackTheme" parent="Base.V7.BlackTheme">
<item name="android:navigationBarColor">@android:color/black</item>
</style>
<style name="Base.BlackTheme" parent="Base.V27.BlackTheme" />
</resources>

View File

@ -77,7 +77,9 @@
<item name="android:windowAnimationStyle">@style/SwitchAnimation</item>
</style>
<style name="DarkTheme" parent="Theme.AppCompat.NoActionBar">
<style name="Base.V7.DarkTheme" parent="Theme.AppCompat.NoActionBar" />
<style name="Base.DarkTheme" parent="Base.V7.DarkTheme" />
<style name="DarkTheme" parent="Base.DarkTheme">
<item name="colorPrimary">@color/dark_youtube_primary_color</item>
<item name="colorPrimaryDark">@color/dark_youtube_dark_color</item>
<item name="colorAccent">@color/dark_youtube_accent_color</item>
@ -144,7 +146,9 @@
<item name="android:windowAnimationStyle">@style/SwitchAnimation</item>
</style>
<style name="BlackTheme" parent="DarkTheme">
<style name="Base.V7.BlackTheme" parent="DarkTheme"/>
<style name="Base.BlackTheme" parent="Base.V7.BlackTheme"/>
<style name="BlackTheme" parent="Base.BlackTheme">
<item name="android:windowBackground">@color/black_background_color</item>
<item name="windowBackground">@color/black_background_color</item>