summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/Config.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-08-23 13:05:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-24 17:12:44 -0700
commit93d87ff509cabdad9f02f379df7eba01a44969c7 (patch)
tree1252bcd153ffff5f94f2b4608872a950c6fb21de /src/com/android/gallery3d/app/Config.java
parent0b6bca8513ae49dacbfdbd9c800ba9f542b6b68b (diff)
downloadandroid_packages_apps_Snap-93d87ff509cabdad9f02f379df7eba01a44969c7.tar.gz
android_packages_apps_Snap-93d87ff509cabdad9f02f379df7eba01a44969c7.tar.bz2
android_packages_apps_Snap-93d87ff509cabdad9f02f379df7eba01a44969c7.zip
Ongoing reskin of Gallery app
Bug: 7050303 Moved the majority of color settings from hardcoded to colors.xml in order to allow rapid iteration with UX input. Started changing some colors and layouts to reflect latest UX mocks. Change-Id: I300338e9f75c71f3ed3f36140d16e893387f3184
Diffstat (limited to 'src/com/android/gallery3d/app/Config.java')
-rw-r--r--src/com/android/gallery3d/app/Config.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/Config.java b/src/com/android/gallery3d/app/Config.java
index 6fb24ec81..04b210e0e 100644
--- a/src/com/android/gallery3d/app/Config.java
+++ b/src/com/android/gallery3d/app/Config.java
@@ -31,6 +31,7 @@ final class Config {
public AlbumSetSlotRenderer.LabelSpec labelSpec;
public int paddingTop;
public int paddingBottom;
+ public int placeholderColor;
public static synchronized AlbumSetPage get(Context context) {
if (sInstance == null) {
@@ -42,10 +43,14 @@ final class Config {
private AlbumSetPage(Context context) {
Resources r = context.getResources();
+ placeholderColor = r.getColor(R.color.albumset_placeholder);
+
slotViewSpec = new SlotView.Spec();
slotViewSpec.rowsLand = r.getInteger(R.integer.albumset_rows_land);
slotViewSpec.rowsPort = r.getInteger(R.integer.albumset_rows_port);
slotViewSpec.slotGap = r.getDimensionPixelSize(R.dimen.albumset_slot_gap);
+ slotViewSpec.slotHeightAdditional = r.getDimensionPixelSize(
+ R.dimen.albumset_label_background_height);
paddingTop = r.getDimensionPixelSize(R.dimen.albumset_padding_top);
paddingBottom = r.getDimensionPixelSize(R.dimen.albumset_padding_bottom);
@@ -67,6 +72,10 @@ final class Config {
R.dimen.albumset_title_right_margin);
labelSpec.iconSize = r.getDimensionPixelSize(
R.dimen.albumset_icon_size);
+ labelSpec.backgroundColor = r.getColor(
+ R.color.albumset_label_background);
+ labelSpec.titleColor = r.getColor(R.color.albumset_label_title);
+ labelSpec.countColor = r.getColor(R.color.albumset_label_count);
}
}
@@ -74,6 +83,7 @@ final class Config {
private static AlbumPage sInstance;
public SlotView.Spec slotViewSpec;
+ public int placeholderColor;
public static synchronized AlbumPage get(Context context) {
if (sInstance == null) {
@@ -85,6 +95,8 @@ final class Config {
private AlbumPage(Context context) {
Resources r = context.getResources();
+ placeholderColor = r.getColor(R.color.album_placeholder);
+
slotViewSpec = new SlotView.Spec();
slotViewSpec.rowsLand = r.getInteger(R.integer.album_rows_land);
slotViewSpec.rowsPort = r.getInteger(R.integer.album_rows_port);