diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java index 0916b93ad..eeca181cf 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java @@ -148,7 +148,7 @@ public class NavDrawerFragment extends Fragment implements SharedPreferences.OnS shapeBuilder.setTopRightCornerSize(cornerSize).setBottomRightCornerSize(cornerSize); } MaterialShapeDrawable drawable = new MaterialShapeDrawable(shapeBuilder.build()); - int themeColor = ThemeUtils.getColorFromAttr(root.getContext(), android.R.attr.windowBackground); + int themeColor = ThemeUtils.getColorFromAttr(root.getContext(), android.R.attr.colorBackground); drawable.setFillColor(ColorStateList.valueOf(themeColor)); root.setBackground(drawable); } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java b/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java index 4ad9df531..beafe2604 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/SwipeActions.java @@ -191,7 +191,7 @@ public class SwipeActions extends ItemTouchHelper.SimpleCallback implements Life //add color and icon Context context = fragment.requireContext(); - int themeColor = ThemeUtils.getColorFromAttr(context, android.R.attr.windowBackground); + int themeColor = ThemeUtils.getColorFromAttr(context, android.R.attr.colorBackground); int actionColor = ThemeUtils.getColorFromAttr(context, dx > 0 ? right.getActionColor() : left.getActionColor()); RecyclerViewSwipeDecorator.Builder builder = new RecyclerViewSwipeDecorator.Builder( diff --git a/app/src/main/res/layout-sw720dp/main.xml b/app/src/main/res/layout-sw720dp/main.xml index e00406464..d2b231992 100644 --- a/app/src/main/res/layout-sw720dp/main.xml +++ b/app/src/main/res/layout-sw720dp/main.xml @@ -37,7 +37,7 @@ android:id="@+id/audioplayerFragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:elevation="8dp" android:visibility="gone" app:layout_behavior="de.danoeh.antennapod.view.LockableBottomSheetBehavior" /> diff --git a/app/src/main/res/layout/audioplayer_fragment.xml b/app/src/main/res/layout/audioplayer_fragment.xml index 87225e783..1a6794db9 100644 --- a/app/src/main/res/layout/audioplayer_fragment.xml +++ b/app/src/main/res/layout/audioplayer_fragment.xml @@ -46,7 +46,7 @@ android:layout_alignBottom="@id/pager" android:importantForAccessibility="no" app:srcCompat="@drawable/bg_gradient" - app:tint="?android:attr/windowBackground" /> + app:tint="?android:attr/colorBackground" /> diff --git a/app/src/main/res/layout/feeditemlist_header.xml b/app/src/main/res/layout/feeditemlist_header.xml index ba8b4fcd8..45f8e8ff8 100644 --- a/app/src/main/res/layout/feeditemlist_header.xml +++ b/app/src/main/res/layout/feeditemlist_header.xml @@ -158,7 +158,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="2dp" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:foreground="?android:attr/selectableItemBackground" android:visibility="gone" android:gravity="center" @@ -171,7 +171,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="2dp" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:visibility="gone" android:gravity="center" android:textColor="?attr/colorAccent" diff --git a/app/src/main/res/layout/fragment_itunes_search.xml b/app/src/main/res/layout/fragment_itunes_search.xml index 36026ae1e..e4d2d7492 100644 --- a/app/src/main/res/layout/fragment_itunes_search.xml +++ b/app/src/main/res/layout/fragment_itunes_search.xml @@ -91,7 +91,7 @@ android:text="@string/discover_powered_by_itunes" android:textSize="12sp" android:padding="4dp" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" diff --git a/app/src/main/res/layout/horizontal_feed_item.xml b/app/src/main/res/layout/horizontal_feed_item.xml index 56a3b317d..faadd0766 100644 --- a/app/src/main/res/layout/horizontal_feed_item.xml +++ b/app/src/main/res/layout/horizontal_feed_item.xml @@ -25,7 +25,7 @@ android:elevation="4dp" android:outlineProvider="bounds" android:foreground="?android:attr/selectableItemBackground" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" squareImageView:direction="height" /> diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index c5cfb494e..3a368e90e 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -29,7 +29,7 @@ android:id="@+id/audioplayerFragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:elevation="8dp" android:visibility="gone" app:layout_behavior="de.danoeh.antennapod.view.LockableBottomSheetBehavior" /> diff --git a/app/src/main/res/layout/theme_preference.xml b/app/src/main/res/layout/theme_preference.xml index 32a7ed1e8..27335fbd3 100644 --- a/app/src/main/res/layout/theme_preference.xml +++ b/app/src/main/res/layout/theme_preference.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:gravity="top" android:padding="8dp"> diff --git a/core/src/main/res/layout/more_content_list_footer.xml b/core/src/main/res/layout/more_content_list_footer.xml index 2869ef7de..a3fcd5489 100644 --- a/core/src/main/res/layout/more_content_list_footer.xml +++ b/core/src/main/res/layout/more_content_list_footer.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:foreground="?attr/selectableItemBackground" - android:background="?android:attr/windowBackground" + android:background="?android:attr/colorBackground" android:gravity="center" android:padding="8dp"> @@ -31,6 +31,6 @@ android:text="@string/load_next_page_label" android:textColor="?android:attr/textColorPrimary" android:layout_marginLeft="8dp" - android:layout_marginRight="8dp"/> + android:layout_marginRight="8dp" /> - \ No newline at end of file + diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index c5cad7522..2b0d50267 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -31,6 +31,7 @@ @@ -73,6 +74,7 @@ @@ -89,7 +91,7 @@