summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Chum <nicholaschum@gmail.com>2015-05-21 15:11:19 -0400
committerRoman Birg <roman@cyngn.com>2015-05-29 16:53:31 +0000
commit5029f8f8ca64efcf704eb3c35c5a32b07e619dd0 (patch)
tree670e67b72cacec679ff38c5a79ac6d998530d7a1
parentc99dcd8c4ed84d8266ab68b8801552d32a50a37e (diff)
downloadandroid_packages_apps_AudioFX-5029f8f8ca64efcf704eb3c35c5a32b07e619dd0.tar.gz
android_packages_apps_AudioFX-5029f8f8ca64efcf704eb3c35c5a32b07e619dd0.tar.bz2
android_packages_apps_AudioFX-5029f8f8ca64efcf704eb3c35c5a32b07e619dd0.zip
Expose text color and background colors for Theming
Verified working on BlissPop 28052015 build with PROJECT WHITE theme by Moelle Change-Id: I7df3f2803580474774cf6c30f2fef56b918c854c
-rw-r--r--res/layout/music_main.xml14
-rw-r--r--res/values/color.xml3
2 files changed, 10 insertions, 7 deletions
diff --git a/res/layout/music_main.xml b/res/layout/music_main.xml
index da5334f..b797c55 100644
--- a/res/layout/music_main.xml
+++ b/res/layout/music_main.xml
@@ -50,18 +50,18 @@
<View
android:layout_width="match_parent"
android:layout_height="20dp"
- android:background="#cc191919"
+ android:background="@color/audiofx_background_color"
/>
<TextView
android:id="@+id/eq_preset_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textColor="#ff808080"
+ android:textColor="@color/eq_preset_label_text_color"
android:layout_gravity="center"
android:gravity="center"
android:textSize="10sp"
- android:background="#cc191919"
+ android:background="@color/audiofx_background_color"
android:text="@string/eq_preset"
android:textAllCaps="true"/>
@@ -69,7 +69,7 @@
android:id="@+id/eqPresets"
android:layout_width="match_parent"
android:layout_height="48dip"
- android:background="#cc191919"
+ android:background="@color/audiofx_background_color"
android:gravity="center_vertical"/>
@@ -150,10 +150,10 @@
android:id="@+id/reverb_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textColor="#ff808080"
+ android:textColor="@color/reverb_label_text_color"
android:layout_gravity="center"
android:gravity="center"
- android:background="#cc191919"
+ android:background="@color/audiofx_background_color"
android:paddingTop="8dp"
android:textSize="10sp"
android:text="@string/reverb"
@@ -164,7 +164,7 @@
android:id="@+id/reverb_gallery"
android:layout_width="match_parent"
android:layout_height="40dip"
- android:background="#cc191919"
+ android:background="@color/audiofx_background_color"
android:gravity="center_vertical"/>
diff --git a/res/values/color.xml b/res/values/color.xml
index dea98a7..2814058 100644
--- a/res/values/color.xml
+++ b/res/values/color.xml
@@ -30,6 +30,9 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<resources>
<color name="action_bar_background">#ff2e2e2e</color>
+ <color name="audiofx_background_color">#cc191919</color>
+ <color name="eq_preset_label_text_color">#ff808080</color>
+ <color name="reverb_label_text_color">#ff808080</color>
<color name="highlight">#cc8f8f8f</color>
<color name="lowlight">#ccf4fcff</color>