From 775e66c3006ff90df86da3b87b08436b441b79e4 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 14 Jul 2015 18:00:34 -0700 Subject: Update to use tinted drawables --- .../dsub/fragments/NowPlayingFragment.java | 68 +++++++++++++-------- .../dsub/fragments/SelectDirectoryFragment.java | 14 ++++- .../github/daneren2005/dsub/util/DrawableTint.java | 3 + .../java/github/daneren2005/dsub/util/Util.java | 9 --- .../github/daneren2005/dsub/view/SongView.java | 6 +- .../github/daneren2005/dsub/view/UpdateView.java | 2 +- .../drawable-hdpi/ic_action_rating_bad_dark.png | Bin 754 -> 658 bytes .../drawable-hdpi/ic_action_rating_bad_light.png | Bin 892 -> 747 bytes .../ic_action_rating_bad_selected.png | Bin 965 -> 559 bytes .../drawable-hdpi/ic_action_rating_good_dark.png | Bin 744 -> 644 bytes .../drawable-hdpi/ic_action_rating_good_light.png | Bin 873 -> 758 bytes .../ic_action_rating_good_selected.png | Bin 921 -> 550 bytes .../res/drawable-hdpi/ic_menu_bookmark_dark.png | Bin 1087 -> 458 bytes .../res/drawable-hdpi/ic_menu_bookmark_light.png | Bin 1292 -> 506 bytes .../drawable-hdpi/ic_menu_bookmark_selected.png | Bin 1374 -> 419 bytes .../drawable-hdpi/ic_toggle_star_outline_dark.png | Bin 0 -> 985 bytes .../drawable-hdpi/ic_toggle_star_outline_light.png | Bin 0 -> 1202 bytes .../drawable-mdpi/ic_action_rating_bad_dark.png | Bin 460 -> 434 bytes .../drawable-mdpi/ic_action_rating_bad_light.png | Bin 543 -> 483 bytes .../ic_action_rating_bad_selected.png | Bin 584 -> 345 bytes .../drawable-mdpi/ic_action_rating_good_dark.png | Bin 456 -> 397 bytes .../drawable-mdpi/ic_action_rating_good_light.png | Bin 541 -> 453 bytes .../ic_action_rating_good_selected.png | Bin 581 -> 326 bytes .../res/drawable-mdpi/ic_menu_bookmark_dark.png | Bin 658 -> 266 bytes .../res/drawable-mdpi/ic_menu_bookmark_light.png | Bin 782 -> 295 bytes .../drawable-mdpi/ic_menu_bookmark_selected.png | Bin 849 -> 253 bytes .../drawable-mdpi/ic_toggle_star_outline_dark.png | Bin 0 -> 622 bytes .../drawable-mdpi/ic_toggle_star_outline_light.png | Bin 0 -> 767 bytes .../drawable-xhdpi/ic_action_rating_bad_dark.png | Bin 961 -> 820 bytes .../drawable-xhdpi/ic_action_rating_bad_light.png | Bin 1141 -> 942 bytes .../ic_action_rating_bad_selected.png | Bin 1197 -> 655 bytes .../drawable-xhdpi/ic_action_rating_good_dark.png | Bin 946 -> 792 bytes .../drawable-xhdpi/ic_action_rating_good_light.png | Bin 1129 -> 919 bytes .../ic_action_rating_good_selected.png | Bin 1176 -> 648 bytes .../res/drawable-xhdpi/ic_menu_bookmark_dark.png | Bin 1442 -> 558 bytes .../res/drawable-xhdpi/ic_menu_bookmark_light.png | Bin 1665 -> 616 bytes .../drawable-xhdpi/ic_menu_bookmark_selected.png | Bin 1780 -> 511 bytes .../drawable-xhdpi/ic_toggle_star_outline_dark.png | Bin 0 -> 1309 bytes .../ic_toggle_star_outline_light.png | Bin 0 -> 1548 bytes .../drawable-xxhdpi/ic_action_rating_bad_dark.png | Bin 1540 -> 1202 bytes .../drawable-xxhdpi/ic_action_rating_bad_light.png | Bin 1822 -> 1311 bytes .../ic_action_rating_bad_selected.png | Bin 1953 -> 1018 bytes .../drawable-xxhdpi/ic_action_rating_good_dark.png | Bin 1582 -> 1197 bytes .../ic_action_rating_good_light.png | Bin 1835 -> 1372 bytes .../ic_action_rating_good_selected.png | Bin 1915 -> 1085 bytes .../res/drawable-xxhdpi/ic_menu_bookmark_dark.png | Bin 2194 -> 881 bytes .../res/drawable-xxhdpi/ic_menu_bookmark_light.png | Bin 2474 -> 1012 bytes .../drawable-xxhdpi/ic_menu_bookmark_selected.png | Bin 2635 -> 778 bytes .../ic_toggle_star_outline_dark.png | Bin 0 -> 2088 bytes .../ic_toggle_star_outline_light.png | Bin 0 -> 2459 bytes .../drawable-xxxhdpi/ic_action_rating_bad_dark.png | Bin 0 -> 1652 bytes .../ic_action_rating_bad_light.png | Bin 0 -> 1859 bytes .../ic_action_rating_bad_selected.png | Bin 0 -> 1558 bytes .../ic_action_rating_good_dark.png | Bin 0 -> 1802 bytes .../ic_action_rating_good_light.png | Bin 0 -> 2066 bytes .../ic_action_rating_good_selected.png | Bin 0 -> 1695 bytes .../res/drawable-xxxhdpi/ic_menu_bookmark_dark.png | Bin 0 -> 1296 bytes .../drawable-xxxhdpi/ic_menu_bookmark_light.png | Bin 0 -> 1394 bytes .../drawable-xxxhdpi/ic_menu_bookmark_selected.png | Bin 0 -> 1255 bytes .../ic_toggle_star_outline_dark.png | Bin 0 -> 3135 bytes .../ic_toggle_star_outline_light.png | Bin 0 -> 3684 bytes app/src/main/res/layout/song_list_item.xml | 1 - app/src/main/res/values/attrs.xml | 1 + app/src/main/res/values/themes.xml | 2 + 64 files changed, 65 insertions(+), 41 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_toggle_star_outline_dark.png create mode 100644 app/src/main/res/drawable-hdpi/ic_toggle_star_outline_light.png create mode 100644 app/src/main/res/drawable-mdpi/ic_toggle_star_outline_dark.png create mode 100644 app/src/main/res/drawable-mdpi/ic_toggle_star_outline_light.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_dark.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_light.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_dark.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_light.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_dark.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_light.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_selected.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_dark.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_light.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_selected.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_dark.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_light.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_selected.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_dark.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_light.png (limited to 'app/src') diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java index 9fa377da..bec43a22 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/NowPlayingFragment.java @@ -235,7 +235,11 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis toggleStarred(currentSong, new OnStarChange() { @Override void starChange(boolean starred) { - starButton.setImageResource(currentSong.isStarred() ? android.R.drawable.btn_star_big_on : android.R.drawable.btn_star_big_off); + if(currentSong.isStarred()) { + starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star)); + } else { + starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark); + } } }); } @@ -398,7 +402,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { rateBadButton.setImageResource(R.drawable.ic_action_rating_bad_dark); } else { - rateBadButton.setImageResource(Util.getAttribute(context, R.attr.rating_bad)); + rateBadButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.rating_bad)); } } else { // Immediately skip to the next song @@ -406,13 +410,13 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis // Otherwise set rating to 1 setRating(entry, 1); - rateBadButton.setImageResource(R.drawable.ic_action_rating_bad_selected); + rateBadButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_action_rating_bad_selected)); // Make sure good rating is blank if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { rateGoodButton.setImageResource(R.drawable.ic_action_rating_good_dark); } else { - rateGoodButton.setImageResource(Util.getAttribute(context, R.attr.rating_good)); + rateGoodButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.rating_good)); } } } @@ -438,18 +442,18 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { rateGoodButton.setImageResource(R.drawable.ic_action_rating_good_dark); } else { - rateGoodButton.setImageResource(Util.getAttribute(context, R.attr.rating_good)); + rateGoodButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.rating_good)); } } else { // Otherwise set rating to maximum setRating(entry, 5); - rateGoodButton.setImageResource(R.drawable.ic_action_rating_good_selected); + rateGoodButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_action_rating_good_selected)); // Make sure bad rating is blank if (context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { rateBadButton.setImageResource(R.drawable.ic_action_rating_bad_dark); } else { - rateBadButton.setImageResource(Util.getAttribute(context, R.attr.rating_bad)); + rateBadButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.rating_bad)); } } } @@ -1102,7 +1106,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis final int position = downloadService.getPlayerPosition(); final Bookmark oldBookmark = currentSong.getBookmark(); currentSong.setBookmark(new Bookmark(position)); - bookmarkButton.setImageResource(R.drawable.ic_menu_bookmark_selected); + bookmarkButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_menu_bookmark_selected)); new SilentBackgroundTask(context) { @Override @@ -1137,7 +1141,7 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { bookmark = R.drawable.ic_menu_bookmark_dark; } else { - bookmark = Util.getAttribute(context, R.attr.bookmark); + bookmark = DrawableTint.getDrawableRes(context, R.attr.bookmark); } bookmarkButton.setImageResource(bookmark); } @@ -1252,40 +1256,50 @@ public class NowPlayingFragment extends SubsonicFragment implements OnGestureLis Entry song = currentPlaying.getSong(); songTitleTextView.setText(song.getTitle()); getImageLoader().loadImage(albumArtImageView, song, true, true); - starButton.setImageResource(song.isStarred() ? android.R.drawable.btn_star_big_on : android.R.drawable.btn_star_big_off); - setSubtitle(context.getResources().getString(R.string.download_playing_out_of, Math.max(0, currentPlayingIndex + 1), currentPlayingSize)); + if(song.isStarred()) { + starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star)); + } else { + starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark); + } + setSubtitle(context.getResources().getString(R.string.download_playing_out_of, currentPlayingIndex, currentPlayingSize)); int badRating, goodRating, bookmark; if(song.getRating() == 1) { - badRating = R.drawable.ic_action_rating_bad_selected; - } else if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { - badRating = R.drawable.ic_action_rating_bad_dark; + rateBadButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_action_rating_bad_selected)); } else { - badRating = Util.getAttribute(context, R.attr.rating_bad); + if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { + badRating = R.drawable.ic_action_rating_bad_dark; + } else { + badRating = DrawableTint.getDrawableRes(context, R.attr.rating_bad); + } + rateBadButton.setImageResource(badRating); } - rateBadButton.setImageResource(badRating); if(song.getRating() == 5) { - goodRating = R.drawable.ic_action_rating_good_selected; - } else if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { - goodRating = R.drawable.ic_action_rating_good_dark; + rateGoodButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_action_rating_good_selected)); } else { - goodRating = Util.getAttribute(context, R.attr.rating_good); + if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { + goodRating = R.drawable.ic_action_rating_good_dark; + } else { + goodRating = DrawableTint.getDrawableRes(context, R.attr.rating_good); + } + rateGoodButton.setImageResource(goodRating); } - rateGoodButton.setImageResource(goodRating); if(song.getBookmark() != null) { - bookmark = R.drawable.ic_menu_bookmark_selected; - } else if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { - bookmark = R.drawable.ic_menu_bookmark_dark; + bookmarkButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_menu_bookmark_selected)); } else { - bookmark = Util.getAttribute(context, R.attr.bookmark); + if(context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { + bookmark = R.drawable.ic_menu_bookmark_dark; + } else { + bookmark = DrawableTint.getDrawableRes(context, R.attr.bookmark); + } + bookmarkButton.setImageResource(bookmark); } - bookmarkButton.setImageResource(bookmark); } else { songTitleTextView.setText(null); getImageLoader().loadImage(albumArtImageView, null, true, false); - starButton.setImageResource(android.R.drawable.btn_star_big_off); + starButton.setImageResource(R.drawable.ic_toggle_star_outline_dark); setSubtitle(null); } } diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index ed6afd46..370d1e51 100644 --- a/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/app/src/main/java/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -40,6 +40,7 @@ import github.daneren2005.dsub.domain.MusicDirectory; import github.daneren2005.dsub.domain.ServerInfo; import github.daneren2005.dsub.domain.Share; import github.daneren2005.dsub.service.DownloadService; +import github.daneren2005.dsub.util.DrawableTint; import github.daneren2005.dsub.util.ImageLoader; import java.io.Serializable; @@ -1435,14 +1436,23 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Section final ImageButton starButton = (ImageButton) header.findViewById(R.id.select_album_star); if(directory != null && Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_MENU_STAR, true) && artistInfo == null) { - starButton.setImageResource(directory.isStarred() ? android.R.drawable.btn_star_big_on : android.R.drawable.btn_star_big_off); + if(directory.isStarred()) { + starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star)); + } else { + starButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.star_outline)); + } starButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { toggleStarred(directory, new OnStarChange() { @Override void starChange(boolean starred) { - starButton.setImageResource(directory.isStarred() ? android.R.drawable.btn_star_big_on : android.R.drawable.btn_star_big_off); + if(directory.isStarred()) { + starButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.star_outline)); + starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star)); + } else { + starButton.setImageResource(DrawableTint.getDrawableRes(context, R.attr.star_outline)); + } } }); } diff --git a/app/src/main/java/github/daneren2005/dsub/util/DrawableTint.java b/app/src/main/java/github/daneren2005/dsub/util/DrawableTint.java index d3c4ebb4..f6b5d315 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/DrawableTint.java +++ b/app/src/main/java/github/daneren2005/dsub/util/DrawableTint.java @@ -34,6 +34,9 @@ public class DrawableTint { private static final Map attrMap = new HashMap<>(); private static final WeakHashMap tintedDrawables = new WeakHashMap<>(); + public static Drawable getTintedDrawable(Context context, @DrawableRes int drawableRes) { + return getTintedDrawable(context, drawableRes, R.attr.colorAccent); + } public static Drawable getTintedDrawable(Context context, @DrawableRes int drawableRes, @AttrRes int colorAttr) { if(tintedDrawables.containsKey(drawableRes)) { return tintedDrawables.get(drawableRes); diff --git a/app/src/main/java/github/daneren2005/dsub/util/Util.java b/app/src/main/java/github/daneren2005/dsub/util/Util.java index a3728d29..ce26bf1e 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/Util.java +++ b/app/src/main/java/github/daneren2005/dsub/util/Util.java @@ -1177,15 +1177,6 @@ public final class Util { } } - public static int getAttribute(Context context, int attr) { - int res; - int[] attrs = new int[] {attr}; - TypedArray typedArray = context.obtainStyledAttributes(attrs); - res = typedArray.getResourceId(0, 0); - typedArray.recycle(); - return res; - } - public static void registerMediaButtonEventReceiver(Context context) { // Only do it if enabled in the settings. diff --git a/app/src/main/java/github/daneren2005/dsub/view/SongView.java b/app/src/main/java/github/daneren2005/dsub/view/SongView.java index 41cba046..dcde0f92 100644 --- a/app/src/main/java/github/daneren2005/dsub/view/SongView.java +++ b/app/src/main/java/github/daneren2005/dsub/view/SongView.java @@ -200,7 +200,7 @@ public class SongView extends UpdateView2 { if(item.isStarred()) { if(!starred) { if(starButton.getDrawable() == null) { - starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star, R.attr.colorPrimary)); + starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star)); } starButton.setVisibility(View.VISIBLE); starred = true; @@ -257,6 +257,10 @@ public class SongView extends UpdateView2 { if(isBookmarked) { if(!bookmarked) { + if(bookmarkButton.getDrawable() == null) { + bookmarkButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_menu_bookmark_selected)); + } + bookmarkButton.setVisibility(View.VISIBLE); bookmarked = true; } diff --git a/app/src/main/java/github/daneren2005/dsub/view/UpdateView.java b/app/src/main/java/github/daneren2005/dsub/view/UpdateView.java index 37290240..e639eaa8 100644 --- a/app/src/main/java/github/daneren2005/dsub/view/UpdateView.java +++ b/app/src/main/java/github/daneren2005/dsub/view/UpdateView.java @@ -241,7 +241,7 @@ public abstract class UpdateView extends LinearLayout { if(isStarred) { if(!starred) { if(starButton.getDrawable() == null) { - starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star, R.attr.colorPrimary)); + starButton.setImageDrawable(DrawableTint.getTintedDrawable(context, R.drawable.ic_toggle_star)); } starButton.setVisibility(View.VISIBLE); starred = true; diff --git a/app/src/main/res/drawable-hdpi/ic_action_rating_bad_dark.png b/app/src/main/res/drawable-hdpi/ic_action_rating_bad_dark.png index 855709e9..b21ef12a 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_action_rating_bad_dark.png and b/app/src/main/res/drawable-hdpi/ic_action_rating_bad_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_rating_bad_light.png b/app/src/main/res/drawable-hdpi/ic_action_rating_bad_light.png index 34199d3a..ab8eb54c 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_action_rating_bad_light.png and b/app/src/main/res/drawable-hdpi/ic_action_rating_bad_light.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_rating_bad_selected.png b/app/src/main/res/drawable-hdpi/ic_action_rating_bad_selected.png index c57aba50..911eea25 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_action_rating_bad_selected.png and b/app/src/main/res/drawable-hdpi/ic_action_rating_bad_selected.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_rating_good_dark.png b/app/src/main/res/drawable-hdpi/ic_action_rating_good_dark.png index fa91e699..f79fcbcd 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_action_rating_good_dark.png and b/app/src/main/res/drawable-hdpi/ic_action_rating_good_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_rating_good_light.png b/app/src/main/res/drawable-hdpi/ic_action_rating_good_light.png index 3427d770..67b30364 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_action_rating_good_light.png and b/app/src/main/res/drawable-hdpi/ic_action_rating_good_light.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_rating_good_selected.png b/app/src/main/res/drawable-hdpi/ic_action_rating_good_selected.png index 34d53153..09417791 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_action_rating_good_selected.png and b/app/src/main/res/drawable-hdpi/ic_action_rating_good_selected.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_menu_bookmark_dark.png b/app/src/main/res/drawable-hdpi/ic_menu_bookmark_dark.png index e7cd08e4..e149a6e5 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_menu_bookmark_dark.png and b/app/src/main/res/drawable-hdpi/ic_menu_bookmark_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_menu_bookmark_light.png b/app/src/main/res/drawable-hdpi/ic_menu_bookmark_light.png index fdb46da3..c9ece7c0 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_menu_bookmark_light.png and b/app/src/main/res/drawable-hdpi/ic_menu_bookmark_light.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_menu_bookmark_selected.png b/app/src/main/res/drawable-hdpi/ic_menu_bookmark_selected.png index 5a33d60c..27696f5b 100644 Binary files a/app/src/main/res/drawable-hdpi/ic_menu_bookmark_selected.png and b/app/src/main/res/drawable-hdpi/ic_menu_bookmark_selected.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_toggle_star_outline_dark.png b/app/src/main/res/drawable-hdpi/ic_toggle_star_outline_dark.png new file mode 100644 index 00000000..87a0d5c5 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_toggle_star_outline_dark.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_toggle_star_outline_light.png b/app/src/main/res/drawable-hdpi/ic_toggle_star_outline_light.png new file mode 100644 index 00000000..b679803f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_toggle_star_outline_light.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_rating_bad_dark.png b/app/src/main/res/drawable-mdpi/ic_action_rating_bad_dark.png index 64f3cd1f..00925d7e 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_action_rating_bad_dark.png and b/app/src/main/res/drawable-mdpi/ic_action_rating_bad_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_rating_bad_light.png b/app/src/main/res/drawable-mdpi/ic_action_rating_bad_light.png index d6c8d42a..eb4cc960 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_action_rating_bad_light.png and b/app/src/main/res/drawable-mdpi/ic_action_rating_bad_light.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_rating_bad_selected.png b/app/src/main/res/drawable-mdpi/ic_action_rating_bad_selected.png index 34f5a9de..ac563748 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_action_rating_bad_selected.png and b/app/src/main/res/drawable-mdpi/ic_action_rating_bad_selected.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_rating_good_dark.png b/app/src/main/res/drawable-mdpi/ic_action_rating_good_dark.png index cadfbe1e..4978b140 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_action_rating_good_dark.png and b/app/src/main/res/drawable-mdpi/ic_action_rating_good_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_rating_good_light.png b/app/src/main/res/drawable-mdpi/ic_action_rating_good_light.png index 75711920..07382a0a 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_action_rating_good_light.png and b/app/src/main/res/drawable-mdpi/ic_action_rating_good_light.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_rating_good_selected.png b/app/src/main/res/drawable-mdpi/ic_action_rating_good_selected.png index 97d279be..197aa106 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_action_rating_good_selected.png and b/app/src/main/res/drawable-mdpi/ic_action_rating_good_selected.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_menu_bookmark_dark.png b/app/src/main/res/drawable-mdpi/ic_menu_bookmark_dark.png index 3360f37e..281479af 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_menu_bookmark_dark.png and b/app/src/main/res/drawable-mdpi/ic_menu_bookmark_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_menu_bookmark_light.png b/app/src/main/res/drawable-mdpi/ic_menu_bookmark_light.png index b4d916fb..76bfb63c 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_menu_bookmark_light.png and b/app/src/main/res/drawable-mdpi/ic_menu_bookmark_light.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_menu_bookmark_selected.png b/app/src/main/res/drawable-mdpi/ic_menu_bookmark_selected.png index efcc1afa..9469278e 100644 Binary files a/app/src/main/res/drawable-mdpi/ic_menu_bookmark_selected.png and b/app/src/main/res/drawable-mdpi/ic_menu_bookmark_selected.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_toggle_star_outline_dark.png b/app/src/main/res/drawable-mdpi/ic_toggle_star_outline_dark.png new file mode 100644 index 00000000..72231a73 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_toggle_star_outline_dark.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_toggle_star_outline_light.png b/app/src/main/res/drawable-mdpi/ic_toggle_star_outline_light.png new file mode 100644 index 00000000..85a184bc Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_toggle_star_outline_light.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_dark.png b/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_dark.png index 1393be0c..8552fb61 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_dark.png and b/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_light.png b/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_light.png index fc1959b6..3cc99d4e 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_light.png and b/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_light.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_selected.png b/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_selected.png index cf7802d5..98494b1f 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_selected.png and b/app/src/main/res/drawable-xhdpi/ic_action_rating_bad_selected.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_rating_good_dark.png b/app/src/main/res/drawable-xhdpi/ic_action_rating_good_dark.png index 249ea9ec..abb63162 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_action_rating_good_dark.png and b/app/src/main/res/drawable-xhdpi/ic_action_rating_good_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_rating_good_light.png b/app/src/main/res/drawable-xhdpi/ic_action_rating_good_light.png index c8a776b0..cab7d3bc 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_action_rating_good_light.png and b/app/src/main/res/drawable-xhdpi/ic_action_rating_good_light.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_rating_good_selected.png b/app/src/main/res/drawable-xhdpi/ic_action_rating_good_selected.png index c6770221..f5065d18 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_action_rating_good_selected.png and b/app/src/main/res/drawable-xhdpi/ic_action_rating_good_selected.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_dark.png b/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_dark.png index 18f71365..7a396f68 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_dark.png and b/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_light.png b/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_light.png index d5776317..c91134e7 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_light.png and b/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_light.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_selected.png b/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_selected.png index 353b7b79..1a1df81b 100644 Binary files a/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_selected.png and b/app/src/main/res/drawable-xhdpi/ic_menu_bookmark_selected.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_dark.png b/app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_dark.png new file mode 100644 index 00000000..aa7e381e Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_dark.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_light.png b/app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_light.png new file mode 100644 index 00000000..6ff994be Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_toggle_star_outline_light.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_dark.png b/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_dark.png index d784b239..5fe1fd79 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_dark.png and b/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_light.png b/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_light.png index a1484d25..71e6e89c 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_light.png and b/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_light.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_selected.png b/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_selected.png index 13218a08..945bb594 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_selected.png and b/app/src/main/res/drawable-xxhdpi/ic_action_rating_bad_selected.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_dark.png b/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_dark.png index a332a632..1f0eeeba 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_dark.png and b/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_light.png b/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_light.png index 2ef75765..aa384864 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_light.png and b/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_light.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_selected.png b/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_selected.png index bb444806..273615ea 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_selected.png and b/app/src/main/res/drawable-xxhdpi/ic_action_rating_good_selected.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_dark.png b/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_dark.png index 2523e14c..ab4d7813 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_dark.png and b/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_light.png b/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_light.png index 9e8c4591..56d843cf 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_light.png and b/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_light.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_selected.png b/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_selected.png index a1890fbb..d24f485d 100644 Binary files a/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_selected.png and b/app/src/main/res/drawable-xxhdpi/ic_menu_bookmark_selected.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_dark.png b/app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_dark.png new file mode 100644 index 00000000..8ee1a446 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_dark.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_light.png b/app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_light.png new file mode 100644 index 00000000..17672e93 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_toggle_star_outline_light.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_dark.png b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_dark.png new file mode 100644 index 00000000..3f08bdde Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_dark.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_light.png b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_light.png new file mode 100644 index 00000000..545e4570 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_light.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_selected.png b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_selected.png new file mode 100644 index 00000000..f585ba00 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_bad_selected.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_dark.png b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_dark.png new file mode 100644 index 00000000..af9dcfbb Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_dark.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_light.png b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_light.png new file mode 100644 index 00000000..9ed5d62c Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_light.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_selected.png b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_selected.png new file mode 100644 index 00000000..9ee267f7 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_action_rating_good_selected.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_dark.png b/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_dark.png new file mode 100644 index 00000000..4651e2ce Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_dark.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_light.png b/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_light.png new file mode 100644 index 00000000..08050801 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_light.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_selected.png b/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_selected.png new file mode 100644 index 00000000..bbec912b Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_menu_bookmark_selected.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_dark.png b/app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_dark.png new file mode 100644 index 00000000..ddc2a190 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_dark.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_light.png b/app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_light.png new file mode 100644 index 00000000..d0048a00 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_toggle_star_outline_light.png differ diff --git a/app/src/main/res/layout/song_list_item.xml b/app/src/main/res/layout/song_list_item.xml index 7b4933e0..c64c1a45 100644 --- a/app/src/main/res/layout/song_list_item.xml +++ b/app/src/main/res/layout/song_list_item.xml @@ -44,7 +44,6 @@ android:layout_width="24dp" android:layout_height="24dp" android:layout_gravity="right|center_vertical" - android:src="@drawable/ic_menu_bookmark_selected" android:background="@null" android:focusable="false" android:scaleType="fitCenter" diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 2d2ebd7d..7e43206a 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -32,6 +32,7 @@ + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 3307f32e..511d630f 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -33,6 +33,7 @@ @drawable/ic_action_rating_bad_light @drawable/ic_action_rating_good_light @drawable/ic_menu_radio_dark + @drawable/ic_toggle_star_outline_light @drawable/main_offline_light @drawable/ic_menu_library_light @drawable/ic_menu_playlist_light @@ -87,6 +88,7 @@ @drawable/ic_action_rating_bad_dark @drawable/ic_action_rating_good_dark @drawable/ic_menu_radio_dark + @drawable/ic_toggle_star_outline_dark @drawable/main_offline_dark @drawable/ic_menu_library_dark @drawable/ic_menu_playlist_dark -- cgit v1.2.3