diff options
author | nicolasroard <nicolasroard@google.com> | 2012-10-24 15:43:56 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2012-10-24 15:51:04 -0700 |
commit | 48541c58a9ee455e14bdc1a7dd4ed8e866055fd1 (patch) | |
tree | 62879260d299348281fb75c554e149d02f4c91df /src/com | |
parent | 68a664431ea1ffdfca53411e8c70ced00bf8dcbc (diff) | |
download | android_packages_apps_Snap-48541c58a9ee455e14bdc1a7dd4ed8e866055fd1.tar.gz android_packages_apps_Snap-48541c58a9ee455e14bdc1a7dd4ed8e866055fd1.tar.bz2 android_packages_apps_Snap-48541c58a9ee455e14bdc1a7dd4ed8e866055fd1.zip |
Change background and panel colors
bug:7385980
Change-Id: I67edeeda0df311203e4cedc140d42a3d9d41a7b4
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/gallery3d/filtershow/FilterShowActivity.java | 1 | ||||
-rw-r--r-- | src/com/android/gallery3d/filtershow/imageshow/ImageSmallFilter.java | 6 |
2 files changed, 6 insertions, 1 deletions
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); |