1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<resources xmlns:android="http://schemas.android.com/apk/res/android">
17    <!-- Dialpad -->
18    <!-- The size won't matter here, as the autosizing will override it -->
19    <style name="TextAppearance.DialNumber" parent="TextAppearance.Display3"/>
20    <style name="TextAppearance.EmergencyDialNumber" parent="TextAppearance.DialNumber">
21        <item name="android:textColor">@color/emergency_text_color</item>
22    </style>
23    <style name="TextAppearance.DialpadDisplayName" parent="TextAppearance.Body1"/>
24
25    <style name="KeypadNumber">
26        <item name="android:layout_width">wrap_content</item>
27        <item name="android:layout_height">wrap_content</item>
28        <item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
29        <item name="android:textSize">@dimen/car_key1_size</item>
30    </style>
31
32    <style name="KeypadLetter">
33        <item name="android:layout_width">wrap_content</item>
34        <item name="android:layout_height">wrap_content</item>
35        <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
36        <item name="android:textSize">@dimen/car_key2_size</item>
37    </style>
38
39    <style name="KeypadImage">
40        <item name="android:layout_width">32dp</item>
41        <item name="android:layout_height">32dp</item>
42        <item name="android:tint">@color/car_key2</item>
43    </style>
44
45    <!-- Phone -->
46    <style name="KeypadButtonStyle">
47        <item name="android:clickable">true</item>
48        <item name="android:layout_width">wrap_content</item>
49        <item name="android:layout_height">wrap_content</item>
50        <item name="android:paddingStart">@dimen/keypad_margin_x</item>
51        <item name="android:paddingEnd">@dimen/keypad_margin_x</item>
52        <item name="android:paddingTop">@dimen/keypad_margin_y</item>
53        <item name="android:paddingBottom">@dimen/keypad_margin_y</item>
54        <item name="android:minWidth">@dimen/touch_target_size</item>
55        <item name="android:minHeight">@dimen/touch_target_size</item>
56        <item name="android:background">?android:attr/selectableItemBackground</item>
57        <item name="android:focusable">true</item>
58    </style>
59
60    <style name="DialpadPrimaryButton">
61        <item name="android:layout_width">@dimen/fab_button_size</item>
62        <item name="android:layout_height">@dimen/fab_button_size</item>
63        <item name="android:elevation">@dimen/call_fab_elevation</item>
64        <item name="android:scaleType">center</item>
65    </style>
66
67    <style name="DialpadSecondaryButton">
68        <item name="android:layout_width">@dimen/bksp_button_width</item>
69        <item name="android:layout_height">@dimen/bksp_button_width</item>
70        <item name="android:background">@drawable/dialer_ripple_background</item>
71        <item name="android:scaleType">centerInside</item>
72        <item name="android:tint">@color/primary_icon_color</item>
73    </style>
74
75    <!-- In-call styling for everything except short landscape screens -->
76    <style name="TextAppearance.InCallUserTitle" parent="TextAppearance.Display2"/>
77    <style name="TextAppearance.InCallUserPhoneNumber" parent="TextAppearance.Body1">
78        <item name="android:textColor">#B8FFFFFF</item>
79    </style>
80    <style name="TextAppearance.InCallState" parent="TextAppearance.Body1">
81        <item name="android:textColor">#B8FFFFFF</item>
82    </style>
83
84    <!-- Call history -->
85    <style name="TextAppearance.CallLogTitleDefault" parent="TextAppearance.Body1"/>
86    <!-- Customized text color for missed calls can be added here -->
87    <style name="TextAppearance.CallLogTitleMissedCall" parent="TextAppearance.Body1"/>
88    <style name="TextAppearance.CallLogSubtitle" parent="TextAppearance.Body3">
89        <item name="android:textColor">@color/secondary_text_color</item>
90    </style>
91    <style name="TextAppearance.CallLogCallCountDefault" parent="TextAppearance.CallLogSubtitle"/>
92    <!-- Customized text color for missed calls can be added here -->
93    <style name="TextAppearance.CallLogCallCountMissedCall" parent="TextAppearance.CallLogSubtitle"/>
94    <style name="TextAppearance.CallLogTimestampDefault" parent="TextAppearance.CallLogSubtitle"/>
95    <!-- Customized text color for missed calls can be added here -->
96    <style name="TextAppearance.CallLogTimestampMissedCall" parent="TextAppearance.CallLogSubtitle"/>
97
98    <!-- Contact details -->
99    <style name="TextAppearance.ContactDetailsTitle" parent="TextAppearance.Display2"/>
100    <style name="TextAppearance.ContactDetailsListTitle" parent="TextAppearance.Body1"/>
101    <style name="TextAppearance.ContactDetailsListSubtitle" parent="TextAppearance.Body3">
102        <item name="android:textColor">@color/secondary_text_color</item>
103    </style>
104    <style name="TextAppearance.DefaultNumberLabel" parent="TextAppearance.Body3">
105        <item name="android:textColor">@*android:color/accent_device_default_light</item>
106    </style>
107
108    <!-- Contact results -->
109    <style name="TextAppearance.ContactResultTitle" parent="TextAppearance.Body1">
110        <item name="android:textColor">@color/primary_text_selector</item>
111    </style>
112
113    <!-- Add to favorite flow dialog -->
114    <style name="TextAppearance.AddFavoriteNumberTitle" parent="TextAppearance.Body1">
115        <item name="android:textColor">@color/primary_text_selector</item>
116    </style>
117    <style name="TextAppearance.AddFavoriteNumberSubtitle" parent="TextAppearance.Body3">
118        <item name="android:textColor">@color/primary_text_selector</item>
119    </style>
120
121    <!-- Subheader -->
122    <style name="SubheaderText">
123        <item name="android:textAppearance">@style/TextAppearance.Body3</item>
124        <item name="android:textFontWeight">500</item>
125        <item name="android:textStyle">normal</item>
126    </style>
127
128    <style name="Widget.Dialer.Button" parent="android:Widget.DeviceDefault.Button">
129        <item name="android:ellipsize">none</item>
130        <item name="android:requiresFadingEdge">horizontal</item>
131        <item name="android:fadingEdgeLength">@*android:dimen/car_textview_fading_edge_length</item>
132    </style>
133
134    <style name="LoadingInfoMessageStyle" parent="FullScreenErrorMessageStyle">
135        <item name="android:textAppearance">@style/TextAppearance.Display3</item>
136        <item name="android:textFontWeight">500</item>
137        <item name="android:textStyle">normal</item>
138    </style>
139    <style name="LoadingInfoSecondaryMessageStyle" parent="FullScreenErrorMessageStyle">
140        <item name="android:textAppearance">@style/TextAppearance.Body2</item>
141    </style>
142    <style name="LoadingInfoActionButtonStyle" parent="FullScreenErrorButtonStyle">
143        <item name="android:textAppearance">@style/TextAppearance.Body3</item>
144        <item name="android:textFontWeight">500</item>
145        <item name="android:textStyle">normal</item>
146    </style>
147</resources>
148