commit | 0b0f4e9d9821d76ab3827f914ec35fd36a6c9b0e | [log] [tgz] |
---|---|---|
author | Jon Miranda <jonmiranda@google.com> | Fri Jun 04 18:28:53 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jun 04 18:28:53 2021 +0000 |
tree | c7e27b4acf797079b3a3e54ad7f181849fb1f373 | |
parent | 625c8a5bd17148101445f9ba141164de689eb9dc [diff] | |
parent | 02f982e4242646543a290a28fdc406522352759c [diff] |
Update colors for themed icons. am: 02f982e424 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/14749348 Change-Id: I8820819a98631be4bad4d380ea75328c01656799
diff --git a/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java b/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java index 797a439..8969587 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java +++ b/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java
@@ -286,8 +286,8 @@ Resources res = context.getResources(); int[] colors = new int[2]; if ((res.getConfiguration().uiMode & UI_MODE_NIGHT_MASK) == UI_MODE_NIGHT_YES) { - colors[0] = res.getColor(android.R.color.system_neutral1_800); - colors[1] = res.getColor(android.R.color.system_neutral2_200); + colors[0] = GraphicsUtils.getAttrColor(context, android.R.attr.colorBackgroundFloating); + colors[1] = GraphicsUtils.getAttrColor(context, android.R.attr.colorAccent); } else { colors[0] = res.getColor(android.R.color.system_accent1_100); colors[1] = res.getColor(android.R.color.system_neutral2_700);