mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-26 16:52:46 +01:00
Merge pull request #4108 from ByteHamster/fix-background
Fixed pager tab background
This commit is contained in:
commit
f5d289d776
@ -86,6 +86,7 @@ public class ItemPagerFragment extends Fragment {
|
||||
pager.setId(newId);
|
||||
pager.setAdapter(new ItemPagerAdapter(this));
|
||||
pager.setCurrentItem(feedItemPos, false);
|
||||
pager.setOffscreenPageLimit(1);
|
||||
loadItem(feedItems[feedItemPos]);
|
||||
pager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
|
||||
@Override
|
||||
|
@ -13,6 +13,7 @@
|
||||
<item name="progressBarTheme">@style/ProgressBarLight</item>
|
||||
<item name="colorPrimaryDark">@color/accent_light</item>
|
||||
<item name="android:windowBackground">@color/background_light</item>
|
||||
<item name="tabBackground">@color/background_light</item>
|
||||
<item name="actionBarStyle">@style/Widget.AntennaPod.ActionBar.Light</item>
|
||||
<item name="master_switch_background">@color/master_switch_background_light</item>
|
||||
<item name="currently_playing_background">@color/highlight_light</item>
|
||||
@ -84,6 +85,7 @@
|
||||
<item name="colorPrimary">@color/accent_dark</item>
|
||||
<item name="colorPrimaryDark">@color/background_darktheme</item>
|
||||
<item name="android:windowBackground">@color/background_darktheme</item>
|
||||
<item name="tabBackground">@color/background_darktheme</item>
|
||||
<item name="actionBarStyle">@style/Widget.AntennaPod.ActionBar.Dark</item>
|
||||
<item name="colorControlNormal">@color/white</item>
|
||||
<item name="progressBarTheme">@style/ProgressBarDark</item>
|
||||
@ -157,6 +159,7 @@
|
||||
<item name="android:textColorPrimary">@color/white</item>
|
||||
<item name="android:color">@color/white</item>
|
||||
<item name="android:colorBackground">@color/black</item>
|
||||
<item name="tabBackground">@color/black</item>
|
||||
<item name="android:windowBackground">@color/black</item>
|
||||
<item name="android:actionBarStyle">@color/black</item>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user