Dark theme
This commit is contained in:
parent
c5c457bbf0
commit
2b919eecbc
@ -71,8 +71,12 @@ public class AllEpisodesRecycleAdapter extends RecyclerView.Adapter<AllEpisodesR
|
||||
this.actionButtonCallback = actionButtonCallback;
|
||||
this.showOnlyNewEpisodes = showOnlyNewEpisodes;
|
||||
|
||||
playingBackGroundColor = context.getResources().getColor(R.color.blue_bg);
|
||||
normalBackGroundColor = context.getResources().getColor(android.R.color.transparent);
|
||||
if(UserPreferences.getTheme() == R.style.Theme_AntennaPod_Dark) {
|
||||
playingBackGroundColor = mainActivity.getResources().getColor(R.color.highlight_dark);
|
||||
} else {
|
||||
playingBackGroundColor = mainActivity.getResources().getColor(R.color.highlight_light);
|
||||
}
|
||||
normalBackGroundColor = mainActivity.getResources().getColor(android.R.color.transparent);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -57,7 +57,7 @@ public class FeedItemlistAdapter extends BaseAdapter {
|
||||
this.actionButtonUtils = new ActionButtonUtils(context);
|
||||
this.makePlayedItemsTransparent = makePlayedItemsTransparent;
|
||||
|
||||
playingBackGroundColor = context.getResources().getColor(R.color.blue_bg);
|
||||
playingBackGroundColor = context.getResources().getColor(R.color.highlight_light);
|
||||
normalBackGroundColor = context.getResources().getColor(android.R.color.transparent);
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,11 @@ public class QueueRecyclerAdapter extends RecyclerView.Adapter<QueueRecyclerAdap
|
||||
this.itemTouchHelper = itemTouchHelper;
|
||||
locked = UserPreferences.isQueueLocked();
|
||||
|
||||
playingBackGroundColor = mainActivity.getResources().getColor(R.color.blue_bg);
|
||||
if(UserPreferences.getTheme() == R.style.Theme_AntennaPod_Dark) {
|
||||
playingBackGroundColor = mainActivity.getResources().getColor(R.color.highlight_dark);
|
||||
} else {
|
||||
playingBackGroundColor = mainActivity.getResources().getColor(R.color.highlight_light);
|
||||
}
|
||||
normalBackGroundColor = mainActivity.getResources().getColor(android.R.color.transparent);
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
<!-- Theme colors -->
|
||||
<color name="primary_light">#FFFFFF</color>
|
||||
|
||||
<color name="blue_bg">#17009ec8</color>
|
||||
<color name="highlight_light">#DDDDDD</color>
|
||||
<color name="highlight_dark">#414141</color>
|
||||
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user