Convert color state lists to state list drawables for filter background colors.

This eliminates an incompatibility on earlier Android OS versions
(https://stackoverflow.com/questions/3953606/how-to-specify-background-color-in-color-state-list-resources)
This commit is contained in:
andrewc1 2020-09-18 22:58:32 -07:00 committed by ByteHamster
parent 410ebfe98c
commit a6dfd27a15
5 changed files with 12 additions and 12 deletions

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/accent_dark" android:state_checked="true"/>
<item android:color="@color/dialog_filter_inactive_dark" />
</selector>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/accent_light" android:state_checked="true" />
<item android:color="@color/dialog_filter_inactive_light" />
</selector>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/accent_dark" android:state_checked="true"/>
<item android:drawable="@color/dialog_filter_inactive_dark" />
</selector>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/accent_light" android:state_checked="true" />
<item android:drawable="@color/dialog_filter_inactive_light" />
</selector>

View File

@ -74,7 +74,7 @@
<item name="ic_volume_adaption">@drawable/ic_volume_adaption_black</item> <item name="ic_volume_adaption">@drawable/ic_volume_adaption_black</item>
<item name="scrollbar_thumb">@drawable/scrollbar_thumb_light</item> <item name="scrollbar_thumb">@drawable/scrollbar_thumb_light</item>
<item name="filter_dialog_clear">@color/filter_dialog_clear_light</item> <item name="filter_dialog_clear">@color/filter_dialog_clear_light</item>
<item name="filter_dialog_button_background">@color/filter_dialog_background_light</item> <item name="filter_dialog_button_background">@drawable/filter_dialog_background_light</item>
</style> </style>
<style name="Theme.AntennaPod.Dark" parent="Theme.Base.AntennaPod.Dark"> <style name="Theme.AntennaPod.Dark" parent="Theme.Base.AntennaPod.Dark">
@ -151,7 +151,7 @@
<item name="ic_volume_adaption">@drawable/ic_volume_adaption_white</item> <item name="ic_volume_adaption">@drawable/ic_volume_adaption_white</item>
<item name="scrollbar_thumb">@drawable/scrollbar_thumb_dark</item> <item name="scrollbar_thumb">@drawable/scrollbar_thumb_dark</item>
<item name="filter_dialog_clear">@color/filter_dialog_clear_dark</item> <item name="filter_dialog_clear">@color/filter_dialog_clear_dark</item>
<item name="filter_dialog_button_background">@color/filter_dialog_background_dark</item> <item name="filter_dialog_button_background">@drawable/filter_dialog_background_dark</item>
</style> </style>
<style name="Theme.AntennaPod.TrueBlack" parent="Theme.Base.AntennaPod.TrueBlack"> <style name="Theme.AntennaPod.TrueBlack" parent="Theme.Base.AntennaPod.TrueBlack">