aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-04-11 17:43:51 -0700
committerScott Jackson <daneren2005@gmail.com>2016-04-11 17:43:51 -0700
commit932921cb3d7af190612c05fe6a99524f681c6260 (patch)
tree479551766e122c181ff28bdb2f4f49b0f2e87872 /app/src
parent8e2ee0646bfe61361081c584b9fcb49f1edb946f (diff)
downloaddsub-932921cb3d7af190612c05fe6a99524f681c6260.tar.gz
dsub-932921cb3d7af190612c05fe6a99524f681c6260.tar.bz2
dsub-932921cb3d7af190612c05fe6a99524f681c6260.zip
Fix red background on different themes
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/view/SongView.java10
1 files changed, 9 insertions, 1 deletions
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<MusicDirectory.Entry, Boolean> {
// 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);
}