From: nicolasroard Date: Wed, 24 Oct 2012 22:43:56 +0000 (-0700) Subject: Change background and panel colors X-Git-Tag: android-x86-7.1-r1~1268^2~78 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0a23b42e4a3e3a93ce7389bfb7352944f644add6;p=android-x86%2Fpackages-apps-Gallery2.git Change background and panel colors bug:7385980 Change-Id: I67edeeda0df311203e4cedc140d42a3d9d41a7b4 --- diff --git a/res/values/filtershow_color.xml b/res/values/filtershow_color.xml index bbf24d87d..15bf2bc7b 100644 --- a/res/values/filtershow_color.xml +++ b/res/values/filtershow_color.xml @@ -19,8 +19,8 @@ #FF0000 #0000FF #FFFFFF - #000000 + #101010 #363949 - #1e2028 + #232323 #333333 \ No newline at end of file diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index c3bc0873a..70e5300fc 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -150,6 +150,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener, ImageFilterRS.setRenderScriptContext(this); ImageShow.setDefaultBackgroundColor(getResources().getColor(R.color.background_screen)); + ImageSmallFilter.setDefaultBackgroundColor(getResources().getColor(R.color.background_main_toolbar)); // TODO: get those values from XML. ImageShow.setTextSize((int) getPixelsFromDip(12)); ImageShow.setTextPadding((int) getPixelsFromDip(10)); diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageSmallFilter.java b/src/com/android/gallery3d/filtershow/imageshow/ImageSmallFilter.java index 53e51ae13..71a69c3f8 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageSmallFilter.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageSmallFilter.java @@ -42,7 +42,7 @@ public class ImageSmallFilter extends ImageShow implements View.OnClickListener // TODO: move this to xml. protected static int mMargin = 12; protected static int mTextMargin = 8; - protected final int mBackgroundColor = Color.argb(255, 30, 32, 40); + protected static int mBackgroundColor = Color.BLUE; protected final int mSelectedBackgroundColor = Color.WHITE; protected final int mTextColor = Color.WHITE; @@ -54,6 +54,10 @@ public class ImageSmallFilter extends ImageShow implements View.OnClickListener mTextMargin = value; } + public static void setDefaultBackgroundColor(int value) { + mBackgroundColor = value; + } + public ImageSmallFilter(Context context, AttributeSet attrs) { super(context, attrs); setOnClickListener(this);