diff options
author | Nancy Chen <nancychen@google.com> | 2014-10-24 16:00:55 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-10-29 22:42:49 +0000 |
commit | 991acb8d1b00d68e2be118cae5e9396d1127d5bb (patch) | |
tree | 831436338bb29e872f0d7eaf66024f411aa53f35 /InCallUI/res/values | |
parent | e05642ba64551c6fc96dee79e65d223f9326a749 (diff) |
In Multi-SIM cases use the color of the SIM icon for InCallUI.
Set the color of the InCallUI to be the color of the SIM icon. In the
single SIM case, the background should be the default background.
* Added id to all call button backgrounds for color change
* Initialize color onResume for InCallActivity
* CallCardFragment/CallButtonFragment/DialpadFragment update their colors
* Added InCallUIMaterialColorMapUtils to extract color
Bug: 17971273
Change-Id: Ia247b153b57ffc8a5277d521c433ab0be6696cf6
Diffstat (limited to 'InCallUI/res/values')
-rw-r--r-- | InCallUI/res/values/colors.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/InCallUI/res/values/colors.xml b/InCallUI/res/values/colors.xml index f691fe2d0..05c2cf139 100644 --- a/InCallUI/res/values/colors.xml +++ b/InCallUI/res/values/colors.xml @@ -76,4 +76,31 @@ <!-- 20% opacity, theme color. --> <color name="incall_dialpad_touch_tint">#330288d1</color> + + <!-- Background colors for InCallUI. This set of colors is a subset of + https://spec.googleplex.com/quantumpalette#extended which pass WCAG AA and all have a + contrast ratio over 5:1. + + These colors are also used by InCallUIMaterialColorMapUtils to generate primary + activity colors. + --> + <array name="background_colors"> + <item>#00796B</item> + <item>#3367D6</item> + <item>#303F9F</item> + <item>#7B1FA2</item> + <item>#C2185B</item> + <item>#C53929</item> + </array> + + <!-- Darker versions of background_colors, two shades darker. These colors are used for the + status bar. --> + <array name="background_colors_dark"> + <item>#004D40</item> + <item>#1C3AA9</item> + <item>#1A237E</item> + <item>#4A148C</item> + <item>#880E4F</item> + <item>#A52714</item> + </array> </resources> |