commit | 34ca8677efd263173e19f0a1fce35eff7aff3c0c | [log] [tgz] |
---|---|---|
author | Catherine Liang <cathliang@google.com> | Fri Apr 14 17:28:53 2023 +0000 |
committer | Catherine Liang <cathliang@google.com> | Thu Apr 20 15:07:01 2023 +0000 |
tree | 733472b3466485faa2643cb02ed01ea1a02f248b | |
parent | 83dc77473e666e0cf2dee3cb6751dd1125da913f [diff] |
Adjust basic Fruit Salad colors contrast Adjust color preview mapping of fruit salad colors in revamped UI to add more contrast. Screenshot: https://screenshot.googleplex.com/4pKHj3bcTNSHc27.png Bug: 275626701 Test: Manually tested on revamped and original UI Change-Id: Ie040ab0b8ca13192ea4eae1682bfa30b8c9a9927
diff --git a/src/com/android/customization/model/color/ColorProvider.kt b/src/com/android/customization/model/color/ColorProvider.kt index 6520b52..5ec919f 100644 --- a/src/com/android/customization/model/color/ColorProvider.kt +++ b/src/com/android/customization/model/color/ColorProvider.kt
@@ -348,7 +348,7 @@ private fun getRevampedUIPresetColorPreview(colorScheme: ColorScheme, seed: Int): IntArray { val colors = when (colorScheme.style) { - Style.FRUIT_SALAD -> intArrayOf(seed, colorScheme.accent1.s100) + Style.FRUIT_SALAD -> intArrayOf(seed, colorScheme.accent1.s200) Style.TONAL_SPOT -> intArrayOf(colorScheme.accentColor, colorScheme.accentColor) else -> intArrayOf(colorScheme.accent1.s100, colorScheme.accent1.s100) }