diff options
author | calderwoodra <calderwoodra@google.com> | 2018-05-19 00:05:02 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-21 13:17:30 -0700 |
commit | 929539eb864822d669265b142bdcc49b6cf8ea6b (patch) | |
tree | fcaef3fac4068e3669ca5916f7a743d0d5e41bbb /java/com/android/incallui/theme/res/values/colors.xml | |
parent | ea7399a7c0c8a3832a6592aee0a0372c300b11f5 (diff) |
Implement a global theme to be easily configured in Dialer.
deleted several colors and unified them across the app
migrated several alert dialogs to support alert dialogs
added many todos
migrated several tests from GoogleRobolectricTestRunner to RobolectricTestRunner
Because of the test migration:
- moved dialpad theme attributes into dialpad/theme
- moved incall ui theme attributes into incallui/theme
Bug: 79883035
Test: tap
PiperOrigin-RevId: 197246477
Change-Id: Ifc534793bc32757bbbf2007a7c40287c8d0817ad
Diffstat (limited to 'java/com/android/incallui/theme/res/values/colors.xml')
-rw-r--r-- | java/com/android/incallui/theme/res/values/colors.xml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/java/com/android/incallui/theme/res/values/colors.xml b/java/com/android/incallui/theme/res/values/colors.xml new file mode 100644 index 000000000..cb894bbb7 --- /dev/null +++ b/java/com/android/incallui/theme/res/values/colors.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2013 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> + +<resources> + <color name="conference_call_manager_caller_name_text_color">#4d4d4d</color> + <!-- Used with some smaller texts in manage conference screen. --> + <color name="conference_call_manager_secondary_text_color">#999999</color> + + <color name="incall_dialpad_background">#ffffff</color> + + <!-- Background color for status bar. For portrait this will be ignored. --> + <color name="statusbar_background_color">?android:attr/colorPrimary</color> + + <!-- 20% opacity, theme color. --> + <color name="incall_dialpad_touch_tint">@color/dialer_theme_color_20pct</color> + + <!-- Background colors for InCallUI. This is a set of colors 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> + <item>#A52714</item> + </array> + + <!-- Darker versions of background_colors, two shades darker. These colors are used for the + status bar. --> + <array name="background_colors_dark"> + <item>#00695C</item> + <item>#2A56C6</item> + <item>#283593</item> + <item>#6A1B9A</item> + <item>#AD1457</item> + <item>#B93221</item> + <item>#841F10</item> + </array> + + <color name="incall_background_gradient_top">#E91141BB</color> + <color name="incall_background_gradient_middle">#E91141BB</color> + <color name="incall_background_gradient_bottom">#CC229FEB</color> + + <color name="incall_background_multiwindow">#E91141BB</color> + + <color name="incall_background_gradient_spam_top">#E5A30B0B</color> + <color name="incall_background_gradient_spam_middle">#D6C01111</color> + <color name="incall_background_gradient_spam_bottom">#B8E55135</color> + + <color name="incall_background_multiwindow_spam">#E9C22E2E</color> +</resources> |