Loading quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionRowView.java +3 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.os.Build; import android.util.AttributeSet; import android.util.IntProperty; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.animation.Interpolator; import android.widget.LinearLayout; Loading Loading @@ -241,8 +242,9 @@ public class PredictionRowView extends LinearLayout implements while (getChildCount() > mNumPredictedAppsPerRow) { removeViewAt(0); } LayoutInflater inflater = mLauncher.getAppsView().getLayoutInflater(); while (getChildCount() < mNumPredictedAppsPerRow) { BubbleTextView icon = (BubbleTextView) mLauncher.getLayoutInflater().inflate( BubbleTextView icon = (BubbleTextView) inflater.inflate( R.layout.all_apps_icon, this, false); icon.setOnClickListener(PREDICTION_CLICK_LISTENER); icon.setOnLongClickListener(ItemLongClickListener.INSTANCE_ALL_APPS); Loading res/layout/all_apps.xml +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ <com.android.launcher3.allapps.LauncherAllAppsContainerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/apps_view" android:theme="?attr/allAppsTheme" android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="true" Loading res/values/attrs.xml +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ <attr name="allAppsScrimColor" format="color" /> <attr name="allAppsInterimScrimAlpha" format="integer" /> <attr name="allAppsNavBarScrimColor" format="color" /> <attr name="allAppsTheme" format="reference" /> <attr name="popupColorPrimary" format="color" /> <attr name="popupColorSecondary" format="color" /> <attr name="popupColorTertiary" format="color" /> Loading @@ -44,6 +45,7 @@ <attr name="folderTextColor" format="color" /> <attr name="folderHintColor" format="color" /> <attr name="workProfileOverlayTextColor" format="color" /> <attr name="disabledIconAlpha" format="float" /> <!-- BubbleTextView specific attributes. --> <declare-styleable name="BubbleTextView"> Loading res/values/styles.xml +14 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ <item name="allAppsScrimColor">#FFFFFFFF</item> <item name="allAppsInterimScrimAlpha">46</item> <item name="allAppsNavBarScrimColor">#66FFFFFF</item> <item name="allAppsTheme">@style/AllAppsTheme</item> <item name="popupColorPrimary">#FFF</item> <item name="popupColorSecondary">#F1F3F4</item> <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 --> Loading @@ -54,6 +55,7 @@ <item name="iconOnlyShortcutColor">?android:attr/textColorSecondary</item> <item name="workProfileOverlayTextColor">#FF212121</item> <item name="eduHalfSheetBGColor">?android:attr/colorAccent</item> <item name="disabledIconAlpha">.36</item> <item name="android:windowTranslucentStatus">false</item> <item name="android:windowTranslucentNavigation">false</item> Loading @@ -67,6 +69,8 @@ <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme"> <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 --> <item name="folderTextColor">?attr/workspaceTextColor</item> <item name="disabledIconAlpha">.24</item> </style> <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme"> Loading @@ -93,6 +97,7 @@ <item name="allAppsScrimColor">#FF000000</item> <item name="allAppsInterimScrimAlpha">102</item> <item name="allAppsNavBarScrimColor">#80000000</item> <item name="allAppsTheme">@style/AllAppsTheme.Dark</item> <item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 --> <item name="popupColorSecondary">#202124</item> <item name="popupColorTertiary">#757575</item> <!-- Gray 600 --> Loading @@ -112,6 +117,7 @@ <style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark"> <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 --> <item name="folderTextColor">@android:color/white</item> <item name="disabledIconAlpha">.24</item> </style> <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark"> Loading Loading @@ -180,6 +186,14 @@ <item name="android:importantForAccessibility">no</item> </style> <style name="AllAppsTheme"> <item name="disabledIconAlpha">.24</item> </style> <style name="AllAppsTheme.Dark"> <item name="disabledIconAlpha">.28</item> </style> <!-- Base theme for BubbleTextView and sub classes --> <style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault"> <item name="android:layout_width">match_parent</item> Loading src/com/android/launcher3/FastBitmapDrawable.java +9 −5 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.util.Property; import com.android.launcher3.graphics.PlaceHolderIconDrawable; import com.android.launcher3.icons.BitmapInfo; import com.android.launcher3.model.data.ItemInfoWithIcon; import com.android.launcher3.util.Themes; public class FastBitmapDrawable extends Drawable { Loading @@ -44,7 +45,6 @@ public class FastBitmapDrawable extends Drawable { private static final float DISABLED_DESATURATION = 1f; private static final float DISABLED_BRIGHTNESS = 0.5f; private static final float DISABLED_ALPHA = 0.54f; public static final int CLICK_FEEDBACK_DURATION = 200; Loading @@ -56,6 +56,7 @@ public class FastBitmapDrawable extends Drawable { private boolean mIsPressed; private boolean mIsDisabled; private float mDisabledAlpha = 1f; // Animator and properties for the fast bitmap drawable's scale private static final Property<FastBitmapDrawable, Float> SCALE Loading Loading @@ -253,7 +254,7 @@ public class FastBitmapDrawable extends Drawable { mat[4] = brightnessI; mat[9] = brightnessI; mat[14] = brightnessI; mat[18] = DISABLED_ALPHA; mat[18] = mDisabledAlpha; tempFilterMatrix.preConcat(tempBrightnessMatrix); sDisabledFColorFilter = new ColorMatrixColorFilter(tempFilterMatrix); } Loading Loading @@ -319,12 +320,15 @@ public class FastBitmapDrawable extends Drawable { * Creates a drawable for the provided BitmapInfo */ public static FastBitmapDrawable newIcon(Context context, BitmapInfo info) { final FastBitmapDrawable drawable; if (info instanceof Factory) { return ((Factory) info).newDrawable(); drawable = ((Factory) info).newDrawable(); } else if (info.isLowRes()) { return new PlaceHolderIconDrawable(info, context); drawable = new PlaceHolderIconDrawable(info, context); } else { return new FastBitmapDrawable(info); drawable = new FastBitmapDrawable(info); } drawable.mDisabledAlpha = Themes.getFloat(context, R.attr.disabledIconAlpha, 1f); return drawable; } } Loading
quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/PredictionRowView.java +3 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.os.Build; import android.util.AttributeSet; import android.util.IntProperty; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.animation.Interpolator; import android.widget.LinearLayout; Loading Loading @@ -241,8 +242,9 @@ public class PredictionRowView extends LinearLayout implements while (getChildCount() > mNumPredictedAppsPerRow) { removeViewAt(0); } LayoutInflater inflater = mLauncher.getAppsView().getLayoutInflater(); while (getChildCount() < mNumPredictedAppsPerRow) { BubbleTextView icon = (BubbleTextView) mLauncher.getLayoutInflater().inflate( BubbleTextView icon = (BubbleTextView) inflater.inflate( R.layout.all_apps_icon, this, false); icon.setOnClickListener(PREDICTION_CLICK_LISTENER); icon.setOnLongClickListener(ItemLongClickListener.INSTANCE_ALL_APPS); Loading
res/layout/all_apps.xml +1 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ <com.android.launcher3.allapps.LauncherAllAppsContainerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/apps_view" android:theme="?attr/allAppsTheme" android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="true" Loading
res/values/attrs.xml +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ <attr name="allAppsScrimColor" format="color" /> <attr name="allAppsInterimScrimAlpha" format="integer" /> <attr name="allAppsNavBarScrimColor" format="color" /> <attr name="allAppsTheme" format="reference" /> <attr name="popupColorPrimary" format="color" /> <attr name="popupColorSecondary" format="color" /> <attr name="popupColorTertiary" format="color" /> Loading @@ -44,6 +45,7 @@ <attr name="folderTextColor" format="color" /> <attr name="folderHintColor" format="color" /> <attr name="workProfileOverlayTextColor" format="color" /> <attr name="disabledIconAlpha" format="float" /> <!-- BubbleTextView specific attributes. --> <declare-styleable name="BubbleTextView"> Loading
res/values/styles.xml +14 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ <item name="allAppsScrimColor">#FFFFFFFF</item> <item name="allAppsInterimScrimAlpha">46</item> <item name="allAppsNavBarScrimColor">#66FFFFFF</item> <item name="allAppsTheme">@style/AllAppsTheme</item> <item name="popupColorPrimary">#FFF</item> <item name="popupColorSecondary">#F1F3F4</item> <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 --> Loading @@ -54,6 +55,7 @@ <item name="iconOnlyShortcutColor">?android:attr/textColorSecondary</item> <item name="workProfileOverlayTextColor">#FF212121</item> <item name="eduHalfSheetBGColor">?android:attr/colorAccent</item> <item name="disabledIconAlpha">.36</item> <item name="android:windowTranslucentStatus">false</item> <item name="android:windowTranslucentNavigation">false</item> Loading @@ -67,6 +69,8 @@ <style name="LauncherTheme.DarkMainColor" parent="@style/LauncherTheme"> <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 --> <item name="folderTextColor">?attr/workspaceTextColor</item> <item name="disabledIconAlpha">.24</item> </style> <style name="LauncherTheme.DarkText" parent="@style/LauncherTheme"> Loading @@ -93,6 +97,7 @@ <item name="allAppsScrimColor">#FF000000</item> <item name="allAppsInterimScrimAlpha">102</item> <item name="allAppsNavBarScrimColor">#80000000</item> <item name="allAppsTheme">@style/AllAppsTheme.Dark</item> <item name="popupColorPrimary">#3C4043</item> <!-- Gray 800 --> <item name="popupColorSecondary">#202124</item> <item name="popupColorTertiary">#757575</item> <!-- Gray 600 --> Loading @@ -112,6 +117,7 @@ <style name="LauncherTheme.Dark.DarkMainColor" parent="@style/LauncherTheme.Dark"> <item name="folderFillColor">#FF3C4043</item> <!-- 100% GM2 800 --> <item name="folderTextColor">@android:color/white</item> <item name="disabledIconAlpha">.24</item> </style> <style name="LauncherTheme.Dark.DarkText" parent="@style/LauncherTheme.Dark"> Loading Loading @@ -180,6 +186,14 @@ <item name="android:importantForAccessibility">no</item> </style> <style name="AllAppsTheme"> <item name="disabledIconAlpha">.24</item> </style> <style name="AllAppsTheme.Dark"> <item name="disabledIconAlpha">.28</item> </style> <!-- Base theme for BubbleTextView and sub classes --> <style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault"> <item name="android:layout_width">match_parent</item> Loading
src/com/android/launcher3/FastBitmapDrawable.java +9 −5 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.util.Property; import com.android.launcher3.graphics.PlaceHolderIconDrawable; import com.android.launcher3.icons.BitmapInfo; import com.android.launcher3.model.data.ItemInfoWithIcon; import com.android.launcher3.util.Themes; public class FastBitmapDrawable extends Drawable { Loading @@ -44,7 +45,6 @@ public class FastBitmapDrawable extends Drawable { private static final float DISABLED_DESATURATION = 1f; private static final float DISABLED_BRIGHTNESS = 0.5f; private static final float DISABLED_ALPHA = 0.54f; public static final int CLICK_FEEDBACK_DURATION = 200; Loading @@ -56,6 +56,7 @@ public class FastBitmapDrawable extends Drawable { private boolean mIsPressed; private boolean mIsDisabled; private float mDisabledAlpha = 1f; // Animator and properties for the fast bitmap drawable's scale private static final Property<FastBitmapDrawable, Float> SCALE Loading Loading @@ -253,7 +254,7 @@ public class FastBitmapDrawable extends Drawable { mat[4] = brightnessI; mat[9] = brightnessI; mat[14] = brightnessI; mat[18] = DISABLED_ALPHA; mat[18] = mDisabledAlpha; tempFilterMatrix.preConcat(tempBrightnessMatrix); sDisabledFColorFilter = new ColorMatrixColorFilter(tempFilterMatrix); } Loading Loading @@ -319,12 +320,15 @@ public class FastBitmapDrawable extends Drawable { * Creates a drawable for the provided BitmapInfo */ public static FastBitmapDrawable newIcon(Context context, BitmapInfo info) { final FastBitmapDrawable drawable; if (info instanceof Factory) { return ((Factory) info).newDrawable(); drawable = ((Factory) info).newDrawable(); } else if (info.isLowRes()) { return new PlaceHolderIconDrawable(info, context); drawable = new PlaceHolderIconDrawable(info, context); } else { return new FastBitmapDrawable(info); drawable = new FastBitmapDrawable(info); } drawable.mDisabledAlpha = Themes.getFloat(context, R.attr.disabledIconAlpha, 1f); return drawable; } }