From c84e0d9e6a645821531d39b31d9a457258c278ad Mon Sep 17 00:00:00 2001 From: hedwig34 Date: Mon, 10 Dec 2012 21:20:29 -0500 Subject: Added an attribute to use the main_offline_light image when using the light sytle. --- subsonic-android/res/layout/main_buttons.xml | 2 +- subsonic-android/res/values/attrs.xml | 4 ++++ subsonic-android/res/values/themes.xml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 subsonic-android/res/values/attrs.xml (limited to 'subsonic-android/res') 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 @@ + + + + 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 @@ @style/Widget.DSub.ActionBarStyle.Light @color/cyan @color/lightBackground + @drawable/main_offline_light