From 325b5c7a6640cfe04b382ac39148d2601ccfad44 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Sun, 11 Jun 2017 20:22:08 -0700 Subject: [PATCH] Some theme fixes > workspaceTextColor was not clearly defined to white and relied on HomeScreenElementTheme > Not all attributes were defined in sw720dp. Created a interm style to avoid such errors > Applying proper tint to resize frame > Fixing shadow colors for homescreen icon Change-Id: If8441011c968291de50b2fd8d7612ce3d5353b95 --- res/layout/app_widget_resize_frame.xml | 21 +++++++++++------- res/values-sw720dp/styles.xml | 10 --------- res/values-v19/styles.xml | 2 +- res/values-v21/styles.xml | 2 +- res/values/styles.xml | 22 ++++++++++--------- src/com/android/launcher3/BubbleTextView.java | 1 - 6 files changed, 27 insertions(+), 31 deletions(-) diff --git a/res/layout/app_widget_resize_frame.xml b/res/layout/app_widget_resize_frame.xml index 91a1e45a08..874fecccf3 100644 --- a/res/layout/app_widget_resize_frame.xml +++ b/res/layout/app_widget_resize_frame.xml @@ -20,38 +20,43 @@ android:layout_height="match_parent" android:background="@drawable/widget_resize_shadow" android:foreground="@drawable/widget_resize_frame" + android:foregroundTint="?attr/workspaceTextColor" android:padding="0dp" > + android:layout_marginLeft="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + android:layout_marginTop="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + android:layout_marginRight="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> + android:layout_marginBottom="@dimen/widget_handle_margin" + android:src="@drawable/ic_widget_resize_handle" + android:tint="?attr/workspaceTextColor" /> \ No newline at end of file diff --git a/res/values-sw720dp/styles.xml b/res/values-sw720dp/styles.xml index 5cfe84ffc4..bb0dbc2215 100644 --- a/res/values-sw720dp/styles.xml +++ b/res/values-sw720dp/styles.xml @@ -27,22 +27,12 @@ true ?android:attr/textColorSecondary @layout/all_apps_search_container - #DDFFFFFF - #FFF - #F5F5F5 - #E0E0E0 - false - false - ?android:textColorPrimary - #22000000 - #44000000 diff --git a/res/values-v21/styles.xml b/res/values-v21/styles.xml index 8d3de01533..927719cc1a 100644 --- a/res/values-v21/styles.xml +++ b/res/values-v21/styles.xml @@ -18,7 +18,7 @@ --> - + + - + @@ -123,8 +126,7 @@ diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index b0e8b1e81f..27e190e5d8 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -51,7 +51,6 @@ import com.android.launcher3.graphics.HolographicOutlineHelper; import com.android.launcher3.graphics.IconPalette; import com.android.launcher3.graphics.PreloadIconDrawable; import com.android.launcher3.model.PackageItemInfo; -import com.android.launcher3.util.Themes; import java.text.NumberFormat;