aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/res
diff options
context:
space:
mode:
authorhedwig34 <hedwig34@gmail.com>2012-12-10 21:20:29 -0500
committerhedwig34 <hedwig34@gmail.com>2012-12-10 21:36:29 -0500
commitc84e0d9e6a645821531d39b31d9a457258c278ad (patch)
treeea17bb58c0506f36e3b9a43e4392e99ae08b2a1a /subsonic-android/res
parent8c2e09b69b7a4aaf15d545a9b84d1c178ba59f3f (diff)
downloaddsub-c84e0d9e6a645821531d39b31d9a457258c278ad.tar.gz
dsub-c84e0d9e6a645821531d39b31d9a457258c278ad.tar.bz2
dsub-c84e0d9e6a645821531d39b31d9a457258c278ad.zip
Added an attribute to use the main_offline_light image when using the light sytle.
Diffstat (limited to 'subsonic-android/res')
-rw-r--r--subsonic-android/res/layout/main_buttons.xml2
-rw-r--r--subsonic-android/res/values/attrs.xml4
-rw-r--r--subsonic-android/res/values/themes.xml3
3 files changed, 8 insertions, 1 deletions
diff --git a/subsonic-android/res/layout/main_buttons.xml b/subsonic-android/res/layout/main_buttons.xml
index c5b3b43a..e8be57f0 100644
--- a/subsonic-android/res/layout/main_buttons.xml
+++ b/subsonic-android/res/layout/main_buttons.xml
@@ -46,7 +46,7 @@
android:id="@+id/main_offline"
android:text="@string/main.offline"
android:drawablePadding="12dip"
- android:drawableLeft="@drawable/main_offline"
+ android:drawableLeft="?attr/offline_icon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
diff --git a/subsonic-android/res/values/attrs.xml b/subsonic-android/res/values/attrs.xml
new file mode 100644
index 00000000..30f5097e
--- /dev/null
+++ b/subsonic-android/res/values/attrs.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <attr name="offline_icon" format="reference"/>
+</resources>
diff --git a/subsonic-android/res/values/themes.xml b/subsonic-android/res/values/themes.xml
index 4555af36..029318fe 100644
--- a/subsonic-android/res/values/themes.xml
+++ b/subsonic-android/res/values/themes.xml
@@ -5,17 +5,20 @@
<item name="android:actionBarStyle">@style/Widget.DSub.ActionBarStyle.Light</item>
<item name="android:textColorSecondary">@color/cyan</item>
<item name="android:windowBackground">@color/lightBackground</item>
+ <item name="offline_icon">@drawable/main_offline_light</item>
</style>
<style name="Theme.DSub.Dark" parent="Theme.Sherlock.ForceOverflow">
<item name="actionBarStyle">@style/Widget.DSub.ActionBarStyle.Dark</item>
<item name="android:actionBarStyle">@style/Widget.DSub.ActionBarStyle.Dark</item>
<item name="android:textColorSecondary">@color/cyan</item>
+ <item name="offline_icon">@drawable/main_offline</item>
</style>
<style name="Theme.DSub.Holo" parent="Theme.Sherlock.ForceOverflow">
<item name="actionBarStyle">@style/Widget.DSub.ActionBarStyle.Holo</item>
<item name="android:actionBarStyle">@style/Widget.DSub.ActionBarStyle.Holo</item>
<item name="android:textColorSecondary">@color/cyan</item>
<item name="android:windowBackground">@drawable/background</item>
+ <item name="offline_icon">@drawable/main_offline</item>
</style>
<style name="Theme.DSub.Light.Fullscreen" parent="Theme.DSub.Light">