summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/launcher3
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2019-05-13 23:23:05 -0700
committerHyunyoung Song <hyunyoungs@google.com>2019-05-14 10:15:11 -0700
commite751d90c449b388266f8ccf637e090a44b4f31cd (patch)
tree511fba9ff08ed9c1f7f732e6ce5db503edb651eb /quickstep/src/com/android/launcher3
parentc857ad80491450eab30866f9c3f4b2c090776bea (diff)
downloadandroid_packages_apps_Trebuchet-e751d90c449b388266f8ccf637e090a44b4f31cd.tar.gz
android_packages_apps_Trebuchet-e751d90c449b388266f8ccf637e090a44b4f31cd.tar.bz2
android_packages_apps_Trebuchet-e751d90c449b388266f8ccf637e090a44b4f31cd.zip
Implement 3 shades of folder icon/container fill color
Bug: 130451254 Change-Id: I36d885a2b0247f1bb84cb98073459853ae723331
Diffstat (limited to 'quickstep/src/com/android/launcher3')
-rw-r--r--quickstep/src/com/android/launcher3/uioverrides/WallpaperColorInfo.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/WallpaperColorInfo.java b/quickstep/src/com/android/launcher3/uioverrides/WallpaperColorInfo.java
index 8218517dc..711e59a33 100644
--- a/quickstep/src/com/android/launcher3/uioverrides/WallpaperColorInfo.java
+++ b/quickstep/src/com/android/launcher3/uioverrides/WallpaperColorInfo.java
@@ -35,6 +35,10 @@ import java.util.ArrayList;
@TargetApi(Build.VERSION_CODES.P)
public class WallpaperColorInfo implements OnColorsChangedListener {
+ private static final int MAIN_COLOR_LIGHT = 0xffdadce0;
+ private static final int MAIN_COLOR_DARK = 0xff202124;
+ private static final int MAIN_COLOR_REGULAR = 0xff000000;
+
private static final Object sInstanceLock = new Object();
private static WallpaperColorInfo sInstance;
@@ -79,6 +83,10 @@ public class WallpaperColorInfo implements OnColorsChangedListener {
return mExtractionInfo.supportsDarkText;
}
+ public boolean isMainColorDark() {
+ return mExtractionInfo.mainColor == MAIN_COLOR_DARK;
+ }
+
@Override
public void onColorsChanged(WallpaperColors colors, int which) {
if ((which & FLAG_SYSTEM) != 0) {