From 89ebb04737aeefefd5081c4157de90c735eab80c Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 9 Sep 2012 14:54:11 -0700 Subject: Removed Wheat theme + re-added back dynamic themeing to activities --- subsonic-android/AndroidManifest.xml | 2 +- subsonic-android/res/values/arrays.xml | 1 - subsonic-android/res/values/colors.xml | 4 ---- subsonic-android/res/values/styles.xml | 14 +++----------- subsonic-android/res/xml/settings.xml | 2 +- .../daneren2005/dsub/activity/SubsonicTabActivity.java | 11 ++++++----- 6 files changed, 11 insertions(+), 23 deletions(-) (limited to 'subsonic-android') diff --git a/subsonic-android/AndroidManifest.xml b/subsonic-android/AndroidManifest.xml index 04136ffc..ac786d26 100644 --- a/subsonic-android/AndroidManifest.xml +++ b/subsonic-android/AndroidManifest.xml @@ -18,7 +18,7 @@ - + - @string/settings.theme_wheat @string/settings.theme_light @string/settings.theme_dark diff --git a/subsonic-android/res/values/colors.xml b/subsonic-android/res/values/colors.xml index 69ab22a1..7a86d370 100644 --- a/subsonic-android/res/values/colors.xml +++ b/subsonic-android/res/values/colors.xml @@ -6,10 +6,6 @@ #FFFFFF #434343 #000000 - - #F1F0E6 - #494B26 - #830009 #8033b5e5 #ff0099cc diff --git a/subsonic-android/res/values/styles.xml b/subsonic-android/res/values/styles.xml index a970fe1b..9760bb0c 100644 --- a/subsonic-android/res/values/styles.xml +++ b/subsonic-android/res/values/styles.xml @@ -1,14 +1,6 @@ - - - - + + + diff --git a/subsonic-android/res/xml/settings.xml b/subsonic-android/res/xml/settings.xml index daa98b90..455a9dc0 100644 --- a/subsonic-android/res/xml/settings.xml +++ b/subsonic-android/res/xml/settings.xml @@ -109,7 +109,7 @@ diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java index 7d303a8d..03fcf357 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java @@ -67,9 +67,8 @@ public class SubsonicTabActivity extends SherlockActivity { @Override protected void onCreate(Bundle bundle) { setUncaughtExceptionHandler(); - // applyTheme(); + applyTheme(); super.onCreate(bundle); - // requestWindowFeature(Window.FEATURE_NO_TITLE); startService(new Intent(this, DownloadServiceImpl.class)); setVolumeControlStream(AudioManager.STREAM_MUSIC); } @@ -169,10 +168,12 @@ public class SubsonicTabActivity extends SherlockActivity { private void applyTheme() { String theme = Util.getTheme(this); if ("dark".equals(theme)) { - setTheme(android.R.style.Theme); + setTheme(R.style.Theme_DSub_Dark); } else if ("light".equals(theme)) { - setTheme(android.R.style.Theme_Light); - } + setTheme(R.style.Theme_DSub_Light); + } else { + setTheme(R.style.Theme_DSub_Light); + } } public boolean isDestroyed() { -- cgit v1.2.3