diff options
| author | Jon Miranda <jonmiranda@google.com> | 2021-05-27 12:40:51 -0700 |
|---|---|---|
| committer | Jon Miranda <jonmiranda@google.com> | 2021-05-27 12:40:51 -0700 |
| commit | 02f982e4242646543a290a28fdc406522352759c (patch) | |
| tree | c7e27b4acf797079b3a3e54ad7f181849fb1f373 | |
| parent | fc33a2fa7d8412352472a1e62efa68a52d822495 (diff) | |
Update colors for themed icons.
Bug: 189478679
Test: manual
Change-Id: Ic94976055305325c879699338a696a7fbe0b8698
| -rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ public class ThemedIconDrawable extends FastBitmapDrawable { 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); |
