diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-11 22:37:09 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-11 22:37:09 -0700 |
commit | d30475bfc714a8d17e48a8c19bfcc52e636f2409 (patch) | |
tree | 1d8830c54cb13c2edd5e7acb28331bdc5b2872c9 | |
parent | 00bfa0e939560b11633d714251ee3813d9b952e3 (diff) | |
download | dsub-d30475bfc714a8d17e48a8c19bfcc52e636f2409.tar.gz dsub-d30475bfc714a8d17e48a8c19bfcc52e636f2409.tar.bz2 dsub-d30475bfc714a8d17e48a8c19bfcc52e636f2409.zip |
Added Fullscreen themes for both light and dark
4 files changed, 18 insertions, 1 deletions
diff --git a/subsonic-android/res/values/arrays.xml b/subsonic-android/res/values/arrays.xml index aac7e74c..e9b66161 100644 --- a/subsonic-android/res/values/arrays.xml +++ b/subsonic-android/res/values/arrays.xml @@ -4,11 +4,15 @@ <string-array name="themeValues"> <item>light</item> <item>dark</item> + <item>light_fullscreen</item> + <item>dark_fullscreen</item> </string-array> <string-array name="themeNames"> <item>@string/settings.theme_light</item> <item>@string/settings.theme_dark</item> + <item>@string/settings.theme_light_fullscreen</item> + <item>@string/settings.theme_dark_fullscreen</item> </string-array> <string-array name="preloadCountValues"> diff --git a/subsonic-android/res/values/strings.xml b/subsonic-android/res/values/strings.xml index a3b6f604..a2a9df56 100644 --- a/subsonic-android/res/values/strings.xml +++ b/subsonic-android/res/values/strings.xml @@ -148,6 +148,8 @@ <string name="settings.theme_wheat">Wheat</string>
<string name="settings.theme_light">Light</string>
<string name="settings.theme_dark">Dark</string>
+ <string name="settings.theme_light_fullscreen">Light Fullscreen</string>
+ <string name="settings.theme_dark_fullscreen">Dark Fullscreen</string>
<string name="settings.network_title">Network</string>
<string name="settings.max_bitrate_wifi">Max bitrate - Wi-Fi</string>
<string name="settings.max_bitrate_mobile">Max bitrate - Mobile</string>
diff --git a/subsonic-android/res/values/styles.xml b/subsonic-android/res/values/styles.xml index 8a319e4a..6db3df58 100644 --- a/subsonic-android/res/values/styles.xml +++ b/subsonic-android/res/values/styles.xml @@ -11,6 +11,13 @@ <item name="android:textColorSecondary">@color/cyan</item> </style> + <style name="Theme.DSub.Light.Fullscreen" parent="Theme.DSub.Light"> + <item name="android:windowFullscreen">true</item> + </style> + <style name="Theme.DSub.Dark.Fullscreen" parent="Theme.DSub.Dark"> + <item name="android:windowFullscreen">true</item> + </style> + <style name="Widget.DSub.ActionBarStyle" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse"> <item name="background">@drawable/menubar_button_disabled</item> <item name="android:background">@drawable/menubar_button_disabled</item> diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java index 8d388347..9b1ab55e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java @@ -181,7 +181,11 @@ public class SubsonicTabActivity extends SherlockActivity { setTheme(R.style.Theme_DSub_Dark); } else if ("light".equals(theme)) { setTheme(R.style.Theme_DSub_Light); - } else { + } else if ("dark_fullscreen".equals(theme)) { + setTheme(R.style.Theme_DSub_Dark_Fullscreen); + } else if ("light_fullscreen".equals(theme)) { + setTheme(R.style.Theme_DSub_Light_Fullscreen); + }else { setTheme(R.style.Theme_DSub_Light); } } |