From 932921cb3d7af190612c05fe6a99524f681c6260 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 11 Apr 2016 17:43:51 -0700 Subject: Fix red background on different themes --- app/src/main/java/github/daneren2005/dsub/view/SongView.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/src') 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 95f7479f..84e04a0b 100644 --- a/app/src/main/java/github/daneren2005/dsub/view/SongView.java +++ b/app/src/main/java/github/daneren2005/dsub/view/SongView.java @@ -330,7 +330,15 @@ public class SongView extends UpdateView2 { // Still highlight red if a 1-star if(isRated == 1) { this.setBackgroundColor(Color.RED); - this.getBackground().setAlpha(20); + + String theme = Util.getTheme(context); + if("black".equals(theme)) { + this.getBackground().setAlpha(80); + } else if("dark".equals(theme) || "holo".equals(theme)) { + this.getBackground().setAlpha(60); + } else { + this.getBackground().setAlpha(20); + } } else if(rating == 1) { this.setBackgroundColor(0x00000000); } -- cgit v1.2.3