• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2013 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<resources>
19  <!-- Theme for the InCallActivity activity. Should have a transparent background for the
20       circular reveal animation for a new outgoing call to work correctly. We don't just use
21       Theme.Black.NoTitleBar directly, since we want any popups or dialogs from the
22       InCallActivity to have the correct Material style. -->
23  <style name="Theme.InCallScreen" parent="@style/Theme.AppCompat.NoActionBar">
24    <item name="android:textColorPrimary">#ffffff</item>
25    <item name="android:textColorSecondary">#DDFFFFFF</item>
26    <item name="android:colorPrimary">@color/dialer_theme_color</item>
27    <item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
28
29    <item name="android:statusBarColor">@android:color/transparent</item>
30    <item name="android:navigationBarColor">@android:color/transparent</item>
31    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
32
33    <item name="dialpad_key_button_touch_tint">@color/incall_dialpad_touch_tint</item>
34    <item name="dialpad_style">@style/InCallDialpad</item>
35    <item name="android:windowAnimationStyle">@null</item>
36    <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
37
38    <item name="android:windowBackground">@drawable/incall_background_gradient</item>
39    <item name="android:windowShowWallpaper">true</item>
40  </style>
41
42  <style name="Theme.InCallScreen.ManageConference" parent="DialerThemeBase">
43  </style>
44
45  <style name="InCallDialpad" parent="Dialpad.Light">
46    <item name="dialpad_key_number_margin_bottom">
47      @dimen/incall_dialpad_key_number_margin_bottom
48    </item>
49    <item name="dialpad_digits_adjustable_text_size">
50      @dimen/incall_dialpad_digits_adjustable_text_size
51    </item>
52    <item name="dialpad_digits_adjustable_height">
53      @dimen/incall_dialpad_digits_adjustable_height
54    </item>
55    <item name="dialpad_key_letters_size_for_dual_alphabets">
56      @dimen/incall_dialpad_key_letters_size_for_dual_alphabets
57    </item>
58    <item name="dialpad_key_letters_size_for_single_alphabet">
59      @dimen/incall_dialpad_key_letters_size_for_single_alphabet
60    </item>
61    <item name="dialpad_key_numbers_size">
62      @dimen/incall_dialpad_key_numbers_size
63    </item>
64    <item name="dialpad_end_key_spacing">
65      @dimen/incall_end_call_spacing
66    </item>
67    <item name="dialpad_elevation">10dp</item>
68  </style>
69
70  <style name="AfterCallNotificationTheme" parent="@android:style/Theme.Material.Light.Dialog">
71    <!-- This colorAccent is to style checkboxes in the dialogs -->
72    <item name="colorAccent">@color/dialer_theme_color</item>
73    <!-- This is needed to make any alert dialogs in this activity take up minimum space -->
74    <item name="android:alertDialogTheme">@style/AfterCallDialogStyle</item>
75  </style>
76
77  <style name="AfterCallDialogStyle" parent="@android:style/Theme.Material.Light.Dialog">
78    <!-- This colorAccent is to style text in the dialogs -->
79    <item name="android:colorAccent">@color/dialer_theme_color</item>
80  </style>
81
82  <style name="Theme.Incall.DialogHolder" parent="Theme.AppCompat.Translucent">
83    <item name="android:windowBackground">@android:color/transparent</item>
84    <item name="android:windowActivityTransitions">false</item>
85
86    <item name="android:statusBarColor">@android:color/transparent</item>
87    <item name="android:navigationBarColor">@android:color/transparent</item>
88    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
89  </style>
90
91</resources>
92