Rework app themes

This commit is contained in:
Maxr1998
2020-08-24 23:18:08 +02:00
parent 4e8e85837d
commit 77ce5f3974
3 changed files with 27 additions and 7 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
<resources>
<!-- Draw into cutout areas while in fullscreen -->
<style name="AppTheme.Player">
<item name="android:windowBackground">@android:color/black</item>
<style name="AppTheme.Player.V28" parent="AppTheme.Player.V21">
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
</resources>
<style name="AppTheme.Player" parent="AppTheme.Player.V28" />
</resources>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.V29" parent="AppTheme.V21">
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>
<style name="AppTheme" parent="AppTheme.V29" />
</resources>
+14 -4
View File
@@ -1,15 +1,25 @@
<resources>
<!-- Application theme -->
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<style name="AppTheme.Base" parent="Theme.AppCompat.NoActionBar">
<item name="colorPrimary">@color/jellyfin_primary</item>
<item name="colorPrimaryDark">@color/jellyfin_primary_dark</item>
<item name="colorAccent">@color/jellyfin_accent</item>
</style>
<!-- Application theme -->
<style name="AppTheme.V21" parent="AppTheme.Base">
<item name="android:windowBackground">@color/theme_background</item>
</style>
<style name="AppTheme.Player">
<style name="AppTheme" parent="AppTheme.V21" />
<!-- ExoPlayer theme -->
<style name="AppTheme.Player.V21" parent="AppTheme.Base">
<item name="android:windowBackground">@android:color/black</item>
</style>
<style name="AppTheme.Player" parent="AppTheme.Player.V21" />
<!-- Settings theme -->
<style name="AppTheme.Settings" />
</resources>
</resources>