Dark theme

This commit is contained in:
Martin Fietz 2015-11-11 12:48:24 +01:00
parent c5c457bbf0
commit 2b919eecbc
4 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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>