1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 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
17<resources>
18    <drawable name="grayBg">#FF333333</drawable>
19
20    <style name="IccPanel">
21        <item name="android:windowFrame">@null</item>
22        <item name="android:windowBackground">@drawable/grayBg</item>
23    </style>
24
25    <style name="info_label">
26        <item name="android:layout_height">wrap_content</item>
27        <item name="android:layout_width">wrap_content</item>
28        <item name="android:textAppearance">@style/TextAppearance.info_label</item>
29        <item name="android:paddingEnd">4dip</item>
30    </style>
31
32    <style name="info_layout">
33        <item name="android:orientation">vertical</item>
34        <item name="android:paddingStart">10dip</item>
35        <item name="android:paddingTop">10dip</item>
36        <item name="android:paddingEnd">10dip</item>
37        <item name="android:paddingBottom">10dip</item>
38        <item name="android:layout_width">match_parent</item>
39        <item name="android:layout_height">match_parent</item>
40    </style>
41
42    <style name="entry_layout">
43        <item name="android:orientation">vertical</item>
44        <item name="android:layout_width">wrap_content</item>
45        <item name="android:layout_height">wrap_content</item>
46    </style>
47
48    <style name="RadioInfo_entry_layout">
49        <item name="android:orientation">horizontal</item>
50        <item name="android:layout_width">wrap_content</item>
51        <item name="android:layout_height">wrap_content</item>
52    </style>
53
54    <style name="info_value">
55        <item name="android:layout_height">wrap_content</item>
56        <item name="android:layout_width">wrap_content</item>
57        <item name="android:textAppearance">@style/TextAppearance.info_value</item>
58    </style>
59
60    <style name="form_value">
61        <item name="android:layout_height">wrap_content</item>
62        <item name="android:layout_width">match_parent</item>
63    </style>
64
65    <style name="TextAppearance" parent="android:TextAppearance">
66    </style>
67
68    <style name="TextAppearance.info_label">
69        <item name="android:textSize">14sp</item>
70        <item name="android:textStyle">bold</item>
71    </style>
72
73    <style name="TextAppearance.info_value">
74        <item name="android:textSize">14sp</item>
75        <item name="android:textStyle">normal</item>
76    </style>
77
78    <!-- Preference Style for the phone number preferences -->
79    <style name="EditPhoneNumberPreference">
80        <item name="enableButtonText">@string/enable</item>
81        <item name="disableButtonText">@string/disable</item>
82        <item name="changeNumButtonText">@string/change_num</item>
83        <item name="confirmMode">activation</item>
84    </style>
85
86    <!-- OTA Call Card styles -->
87    <style name="ccOtaButtonBar">
88        <!-- TODO: change height to 'wrap_content' when layout bug is fixed -->
89        <item name="android:layout_height">60dip</item>
90        <item name="android:layout_width">match_parent</item>
91        <item name="android:background">@android:drawable/bottom_bar</item>
92    </style>
93
94    <style name="ccOtaButton">
95        <item name="android:layout_width">150dip</item>
96        <item name="android:layout_height">wrap_content</item>
97        <item name="android:layout_marginTop">5dip</item>
98        <item name="android:layout_marginBottom">5dip</item>
99    </style>
100
101    <style name="ccOtaNextButton" parent="ccOtaButton">
102        <!-- <item name="android:drawableEnd">@drawable/ic_btn_next</item>
103             <item name="android:drawablePadding">10dip</item>
104          -->
105        <item name="android:layout_alignParentBottom">true</item>
106        <item name="android:layout_alignParentEnd">true</item>
107        <item name="android:layout_marginEnd">4dip</item>
108    </style>
109
110    <style name="ccOtaSkipButton" parent="ccOtaButton">
111        <item name="android:layout_alignParentBottom">true</item>
112        <item name="android:layout_alignParentStart">true</item>
113        <item name="android:layout_marginStart">4dip</item>
114    </style>
115
116    <style name="ccOtaWizardTitle">
117        <item name="android:textSize">22sp</item>
118        <item name="android:textColor">@color/ota_title_color</item>
119    </style>
120
121    <style name="ccOtaTextPrimary">
122        <item name="android:textColor">?android:attr/textColorPrimary</item>
123        <item name="android:textSize">17sp</item>
124    </style>
125
126    <!-- Buttons in the main "button row" of the in-call onscreen touch UI. -->
127    <style name="InCallButton">
128        <item name="android:layout_width">0px</item>
129        <item name="android:layout_height">@dimen/in_call_button_height</item>
130        <item name="android:layout_weight">1</item>
131        <item name="android:background">?android:attr/selectableItemBackground</item>
132    </style>
133
134    <!-- "Compound button" variation of InCallButton.
135         These buttons have the concept of two states: checked and unchecked.
136         (This style is just like "InCallButton" except that we also
137         clear out android:textOn and android:textOff, to avoid the default
138         text label behavior of the ToggleButton class.) -->
139    <style name="InCallCompoundButton" parent="InCallButton">
140        <item name="android:textOn">@null</item>
141        <item name="android:textOff">@null</item>
142    </style>
143
144    <style name="VerticalSeparator">
145        <item name="android:layout_width">2dp</item>
146        <item name="android:layout_height">match_parent</item>
147        <item name="android:background">@android:color/black</item>
148    </style>
149
150    <!-- "End" button; similar to InCallButton. -->
151    <style name="InCallEndButton">
152        <item name="android:layout_width">0dip</item>
153        <item name="android:layout_height">@dimen/in_call_end_button_height</item>
154        <item name="android:layout_weight">1</item>
155    </style>
156
157    <!-- Buttons in extra button row. -->
158    <style name="InCallExtraRowButton">
159        <item name="android:layout_width">@dimen/extra_row_button_width</item>
160        <item name="android:layout_height">@dimen/extra_row_button_height</item>
161        <item name="android:background">@null</item>
162    </style>
163
164    <!-- Text label drawn alongside buttons in the "extra button row" of
165         the in-call onscreen touch UI. -->
166    <style name="InCallExtraRowButtonLabel">
167        <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
168        <item name="android:textColor">@color/incall_call_banner_text_color</item>
169        <item name="android:textAllCaps">true</item>
170        <item name="android:textStyle">bold</item>
171        <item name="android:layout_width">wrap_content</item>
172        <item name="android:layout_height">wrap_content</item>
173        <item name="android:layout_gravity">center_vertical</item>
174        <item name="android:layout_marginStart">5dip</item>
175        <item name="android:layout_marginEnd">5dip</item>
176    </style>
177
178    <style name="SettingsLight" parent="android:Theme.Material.Light">
179        <item name="android:forceDarkAllowed">true</item>
180        <item name="android:windowBackground">@color/phone_settings_background_color</item>
181        <item name="android:windowContentOverlay">@null</item>
182        <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item>
183        <item name="android:actionMenuTextColor">@color/phone_settings_actionbar_text_color</item>
184        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
185        <item name="android:windowActionBarOverlay">false</item>
186        <item name="android:colorPrimaryDark">@color/actionbar_background_color_dark</item>
187        <!-- Setting text. -->
188        <item name="android:textColorPrimary">@color/settings_text_color_primary</item>
189        <!-- Setting description. -->
190        <item name="android:textColorSecondary">@color/settings_text_color_secondary</item>
191    </style>
192
193    <style name="DialerSettingsLight" parent="SettingsLight">
194        <!-- Action bar.-->
195        <item name="android:windowBackground">@color/dialer_background_color</item>
196        <item name="android:actionModeBackground">@color/dialer_background_color</item>
197        <item name="android:windowLightStatusBar">true</item>
198        <!-- Navigation bar.-->
199        <item name="android:navigationBarColor">@color/dialer_background_color</item>
200        <item name="android:navigationBarDividerColor">@color/dialer_divider_color</item>
201        <item name="android:windowLightNavigationBar">true</item>
202        <item name="android:colorAccent">@color/dialer_theme_color</item>
203        <item name="android:dialogTheme">@style/DialerAlertDialogTheme</item>
204        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
205    </style>
206
207    <style name="DialerAlertDialogTheme"
208        parent="@android:style/Theme.Material.Light.Dialog">
209        <item name="android:forceDarkAllowed">true</item>
210        <item name="android:colorAccent">@color/dialer_theme_color</item>
211        <item name="android:textColor">?android:attr/textColorPrimaryInverseDisableOnly</item>
212    </style>
213
214    <style name="Empty" parent="@android:style/Theme.Material.Light">
215        <item name="android:forceDarkAllowed">true</item>
216        <item name="android:windowIsTranslucent">true</item>
217        <item name="android:windowBackground">@android:color/transparent</item>
218        <item name="android:windowContentOverlay">@null</item>
219        <item name="android:windowNoTitle">true</item>
220        <item name="android:windowIsFloating">true</item>
221        <item name="android:backgroundDimEnabled">true</item>
222    </style>
223
224    <!-- Style for the call settings action bar.  Should be kept in sync with Dialer. -->
225    <style name="DialtactsActionBarStyle" parent="@style/TelephonyActionBarStyle">
226        <!-- Shift the title text to the right -->
227        <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
228    </style>
229
230    <style name="TelephonyActionBarStyle" parent="android:Widget.Material.ActionBar">
231        <item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
232        <item name="android:background">@color/actionbar_background_color</item>
233        <item name="android:titleTextStyle">@style/DialtactsActionBarTitleText</item>
234        <item name="android:height">@dimen/action_bar_height</item>
235        <item name="android:elevation">@dimen/action_bar_elevation</item>
236        <!-- Empty icon -->
237        <item name="android:icon">@android:color/transparent</item>
238    </style>
239
240    <!-- Text in the action bar at the top of the screen.  Should be kept in sync with Dialer. -->
241    <style name="DialtactsActionBarTitleText"
242           parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
243        <item name="android:textColor">@color/dialer_primary_text_color</item>
244        <item name="android:textSize">@dimen/dialer_head1_font_size</item>
245        <item name="android:fontFamily">sans-serif-regular</item>
246    </style>
247
248    <!-- Action bar overflow menu icon. -->
249    <style name="DialtactsActionBarOverflow"
250           parent="@android:style/Widget.Holo.ActionButton.Overflow">
251        <item name="android:src">@drawable/overflow_menu</item>
252    </style>
253
254    <style name="EmergencyDialerTheme" parent="@android:style/Theme.Material.NoActionBar">
255        <item name="android:forceDarkAllowed">true</item>
256        <item name="android:colorPrimaryDark">?android:attr/colorPrimary</item>
257        <item name="android:colorBackgroundCacheHint">@null</item>
258        <item name="android:windowShowWallpaper">true</item>
259        <item name="android:statusBarColor">@android:color/transparent</item>
260        <item name="android:navigationBarColor">@android:color/transparent</item>
261        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
262        <item name="emergencyButtonBackgroundColor">#3cffffff</item>
263        <item name="dialpadTheme">@style/Dialpad_DarkTransparent.Emergency</item>
264    </style>
265
266    <style name="EmergencyDialerThemeDark" parent="@style/EmergencyDialerTheme">
267        <item name="android:forceDarkAllowed">true</item>
268        <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
269        <item name="emergencyButtonBackgroundColor">#19414549</item>
270        <item name="android:colorControlHighlight">#40000000</item>
271        <item name="dialpadTheme">@style/Dialpad_LightTransparent.Emergency</item>
272    </style>
273
274    <style name="Dialpad_LightTransparent.Emergency">
275        <item name="dialpad_delete_padding">16dp</item>
276    </style>
277
278    <style name="Dialpad_DarkTransparent.Emergency">
279        <item name="dialpad_delete_padding">16dp</item>
280    </style>
281
282    <style name="EmergencyDialerAlertDialogTheme"
283           parent="@android:style/Theme.Material.Dialog">
284        <item name="android:forceDarkAllowed">true</item>
285        <item name="android:textColor">?android:attr/textColorPrimary</item>
286    </style>
287
288    <style name="SimImportTheme" parent="@android:style/Theme.Material.Light">
289        <item name="android:forceDarkAllowed">true</item>
290        <item name="android:actionBarStyle">@style/TelephonyActionBarStyle</item>
291        <item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
292        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
293        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
294    </style>
295
296    <style name="DialtactsDigitsTextAppearance">
297        <item name="android:maxLines">1</item>
298        <item name="android:textSize">@dimen/dialpad_digits_text_size</item>
299        <item name="android:textColor">?android:attr/textColorPrimary</item>
300        <item name="android:freezesText">true</item>
301        <item name="android:editable">true</item>
302        <item name="android:cursorVisible">false</item>
303    </style>
304
305    <style name="Theme.Transparent" parent="android:Theme">
306        <item name="android:windowIsTranslucent">true</item>
307        <item name="android:windowBackground">@android:color/transparent</item>
308        <item name="android:windowContentOverlay">@null</item>
309        <item name="android:windowNoTitle">true</item>
310        <item name="android:windowIsFloating">true</item>
311        <item name="android:backgroundDimEnabled">false</item>
312    </style>
313
314    <style name="CallSettingsWithoutDividerTheme" parent="DialerSettingsLight">
315        <item name="android:listDivider">@null</item>
316    </style>
317
318    <style name="EmergencyInfoNameTextAppearance"
319           parent="@android:style/TextAppearance.Material.Subhead">
320        <item name="android:textColor">@color/primary_text_default_material_dark</item>
321        <item name="android:textSize">@dimen/emergency_info_name_text_size</item>
322    </style>
323
324    <style name="EmergencyInfoHintTextAppearance"
325           parent="@android:style/TextAppearance.Material.Subhead">
326        <item name="android:textColor">@color/secondary_text_default_material_dark</item>
327        <item name="android:textSize">@dimen/emergency_info_hint_text_size</item>
328    </style>
329
330    <style name="EmergencyInfoTapHintTextAppearance"
331           parent="@android:style/TextAppearance.Material.Subhead">
332        <item name="android:textColor">@android:color/white</item>
333        <item name="android:textSize">@dimen/emergency_info_tap_hint_text_size</item>
334    </style>
335
336    <style name="ShortcutViewHintTextAppearance"
337           parent="@android:style/TextAppearance.Material.Subhead">
338        <item name="android:textColor">@color/secondary_text_default_material_dark</item>
339    </style>
340
341    <style name="PhoneNumberTextAppearance"
342           parent="@android:style/TextAppearance.Material.Subhead">
343        <item name="android:textColor">@color/primary_text_default_material_light</item>
344        <item name="android:textSize">@dimen/emergency_shortcut_number_text_size</item>
345    </style>
346
347    <style name="PhoneNumberTypeAppearance">
348        <item name="android:fontFamily">roboto</item>
349        <item name="android:textColor">@color/secondary_text_default_material_light</item>
350        <item name="android:textSize">@dimen/emergency_shortcut_type_text_size</item>
351    </style>
352
353    <style name="PhoneNumberTapHintAppearance"
354           parent="@android:style/TextAppearance.Material.Subhead">
355        <item name="android:textColor">@android:color/white</item>
356        <item name="android:textSize">@dimen/emergency_shortcut_tap_hint_text_size</item>
357    </style>
358</resources>
359