aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/res
diff options
context:
space:
mode:
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">