aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-16 19:23:16 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-16 19:23:16 -0700
commitb8bdb7de3c027990a06fcad6440045dcac565aab (patch)
tree96384b5cf72cc21074c5cc6abb5e2d3b8f6a1ebc
parent4bfa0b7fd89ffd679ed71b2548e4494c5a2dc4a3 (diff)
downloaddsub-b8bdb7de3c027990a06fcad6440045dcac565aab.tar.gz
dsub-b8bdb7de3c027990a06fcad6440045dcac565aab.tar.bz2
dsub-b8bdb7de3c027990a06fcad6440045dcac565aab.zip
Fix light theme
-rw-r--r--subsonic-android/res/values/themes.xml10
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java8
2 files changed, 12 insertions, 6 deletions
diff --git a/subsonic-android/res/values/themes.xml b/subsonic-android/res/values/themes.xml
index 510ff977..2389365f 100644
--- a/subsonic-android/res/values/themes.xml
+++ b/subsonic-android/res/values/themes.xml
@@ -49,11 +49,11 @@
<item name="android:windowFullscreen">true</item>
</style>
- <style name="Widget.DSub.ActionBarStyle.Light" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse">
- <item name="background">@drawable/menubar_button_normal</item>
- <item name="android:background">@drawable/actionbar_background</item>
- <item name="backgroundStacked">@drawable/actionbar_background</item>
- <item name="android:backgroundStacked">@drawable/actionbar_background</item>
+ <style name="Widget.DSub.ActionBarStyle.Light" parent="Widget.Sherlock.Light.ActionBar.Solid">
+ <item name="background">@android:color/transparent</item>
+ <item name="android:background">@android:color/transparent</item>
+ <item name="backgroundStacked">@android:color/transparent</item>
+ <item name="android:backgroundStacked">@android:color/transparent</item>
</style>
<style name="Widget.DSub.ActionBarStyle.Dark" parent="Widget.Sherlock.ActionBar.Solid">
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
index e5835f80..d0eb86ef 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
@@ -6,6 +6,8 @@ import android.content.ComponentName;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
+import android.content.res.TypedArray;
+import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
@@ -228,7 +230,11 @@ public class MainActivity extends SubsonicActivity {
trackView.setText(song.getTitle());
artistView.setText(song.getArtist());
getImageLoader().loadImage(coverArtView, song, false, false);
- startButton.setImageResource((getDownloadService().getPlayerState() == PlayerState.STARTED) ? R.drawable.media_pause : R.drawable.media_start);
+ int[] attrs = new int[] {(getDownloadService().getPlayerState() == PlayerState.STARTED) ? R.attr.media_button_pause : R.attr.media_button_start};
+ TypedArray typedArray = this.obtainStyledAttributes(attrs);
+ Drawable drawable = typedArray.getDrawable(0);
+ startButton.setImageDrawable(drawable);
+ typedArray.recycle();
}
public void checkUpdates() {