1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2012 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<resources>
18    <style name="DialtactsTheme"
19           parent="android:Theme.Material.Light">
20        <item name="android:textColorPrimary">@color/dialtacts_primary_text_color</item>
21        <item name="android:textColorSecondary">@color/dialtacts_secondary_text_color</item>
22        <item name="android:windowActionBarOverlay">true</item>
23        <item name="android:windowActionModeOverlay">true</item>
24        <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item>
25        <!-- Style for the overflow button in the actionbar. -->
26        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
27        <!--  Drawable for the back button -->
28        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
29        <item name="android:windowContentOverlay">@null</item>
30        <item name="android:listViewStyle">@style/ListViewStyle</item>
31        <item name="android:overlapAnchor">true</item>
32        <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
33        <item name="activated_background">@drawable/list_item_activated_background</item>
34        <item name="section_header_background">@drawable/list_title_holo</item>
35        <item name="list_section_header_height">32dip</item>
36        <item name="list_item_padding_top">12dp</item>
37        <item name="list_item_padding_right">32dp</item>
38        <item name="list_item_padding_bottom">12dp</item>
39        <item name="list_item_padding_left">16dp</item>
40        <item name="list_item_gap_between_image_and_text">
41            @dimen/contact_browser_list_item_gap_between_image_and_text
42        </item>
43        <item name="list_item_gap_between_label_and_data">5dip</item>
44        <item name="list_item_presence_icon_margin">4dip</item>
45        <item name="list_item_presence_icon_size">16dip</item>
46        <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
47        <item name="list_item_profile_photo_size">70dip</item>
48        <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
49        <item name="list_item_background_color">@color/background_dialer_light</item>
50        <item name="list_item_header_text_indent">8dip</item>
51        <item name="list_item_header_text_color">@color/dialtacts_secondary_text_color</item>
52        <item name="list_item_header_text_size">14sp</item>
53        <item name="list_item_header_height">30dip</item>
54        <item name="list_item_data_width_weight">5</item>
55        <item name="list_item_label_width_weight">3</item>
56        <item name="contact_browser_list_padding_left">0dp</item>
57        <item name="contact_browser_list_padding_right">0dp</item>
58        <item name="contact_browser_background">@color/background_dialer_results</item>
59        <item name="list_item_name_text_color">@color/contact_list_name_text_color</item>
60        <item name="list_item_name_text_size">16sp</item>
61        <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
62        <item name="list_item_text_offset_top">-2dp</item>
63        <!-- CallLog -->
64        <item name="call_log_primary_text_color">@color/dialtacts_primary_text_color</item>
65        <item name="call_log_primary_background_color">#000000</item>
66        <item name="call_log_secondary_text_color">@color/dialtacts_secondary_text_color</item>
67        <item name="call_log_secondary_background_color">#333333</item>
68        <item name="call_log_header_color">#33b5e5</item>
69        <!-- VoicemailStatus -->
70        <item name="call_log_voicemail_status_height">48dip</item>
71        <item name="call_log_voicemail_status_background_color">#262626</item>
72        <item name="call_log_voicemail_status_text_color">#888888</item>
73        <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
74            <!-- Favorites -->
75        <item name="favorites_padding_bottom">?android:attr/actionBarSize</item>
76        <item name="android:colorPrimary">@color/dialer_theme_color</item>
77        <item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
78        <item name="dialpad_key_button_touch_tint">@color/dialer_dialpad_touch_tint</item>
79        <item name="android:colorControlActivated">@color/dialer_theme_color</item>
80    </style>
81
82    <!-- Action bar overflow menu icon. -->
83    <style name="DialtactsActionBarOverflow"
84           parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
85        <item name="android:src">@drawable/ic_overflow_menu</item>
86    </style>
87
88    <!-- Action bar overflow menu icon.  White with no shadow. -->
89    <style name="DialtactsActionBarOverflowWhite"
90           parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
91        <item name="android:src">@drawable/overflow_menu</item>
92    </style>
93
94    <style name="DialpadTheme" parent="DialtactsTheme">
95        <item name="android:textColorPrimary">#FFFFFF</item>
96    </style>
97
98    <style name="DialtactsThemeWithoutActionBarOverlay" parent="DialtactsTheme">
99        <item name="android:windowActionBarOverlay">false</item>
100        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item>
101    </style>
102
103    <!-- Hide the actionbar title during the activity preview -->
104    <style name="DialtactsActivityTheme" parent="DialtactsTheme">
105        <item name="android:actionBarStyle">@style/DialtactsActionBarWithoutTitleStyle</item>
106        <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item>
107        <item name="android:fastScrollTrackDrawable">@null</item>
108    </style>
109
110    <style name="CallDetailActivityTheme" parent="DialtactsThemeWithoutActionBarOverlay">
111        <item name="android:windowBackground">@color/background_dialer_results</item>
112        <!-- CallLog -->
113        <item name="call_log_primary_background_color">#FFFFFF</item>
114        <item name="call_log_secondary_background_color">#FFFFFF</item>
115        <item name="call_log_header_color">#FFFFFF</item>
116        <!-- VoicemailStatus -->
117        <item name="call_log_voicemail_status_height">48dip</item>
118        <item name="call_log_voicemail_status_background_color">#262626</item>
119        <item name="call_log_voicemail_status_text_color">#888888</item>
120        <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
121        <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item>
122    </style>
123
124    <style name="DialtactsActionBarStyle" parent="android:Widget.Material.ActionBar">
125        <item name="android:background">@color/actionbar_background_color</item>
126        <item name="android:titleTextStyle">@style/DialtactsActionBarTitleText</item>
127        <item name="android:height">@dimen/action_bar_height</item>
128        <item name="android:elevation">@dimen/action_bar_elevation</item>
129        <!-- Empty icon -->
130        <item name="android:icon">@android:color/transparent</item>
131        <!-- Shift the title text to the right -->
132        <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
133    </style>
134
135    <style name="DialtactsActionBarWithoutTitleStyle" parent="DialtactsActionBarStyle">
136        <item name="android:displayOptions"></item>
137        <item name="android:height">@dimen/action_bar_height_large</item>
138        <!-- Override ActionBar title offset to keep search box aligned left -->
139        <item name="android:contentInsetStart">0dp</item>
140        <item name="android:contentInsetEnd">0dp</item>
141    </style>
142
143    <!-- Text in the action bar at the top of the screen -->
144    <style name="DialtactsActionBarTitleText"
145           parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
146        <item name="android:textColor">@color/actionbar_text_color</item>
147    </style>
148
149    <!-- Text style for tabs. -->
150    <style name="DialtactsActionBarTabTextStyle"
151           parent="android:style/Widget.Material.Light.ActionBar.TabText">
152        <item name="android:textColor">@color/tab_text_color</item>
153        <item name="android:textSize">@dimen/tab_text_size</item>
154        <item name="android:fontFamily">"sans-serif-medium"</item>
155    </style>
156
157    <style name="ListViewStyle" parent="@android:style/Widget.Material.Light.ListView">
158        <item name="android:overScrollMode">always</item>
159    </style>
160
161    <style name="DismissButtonStyle">
162        <item name="android:paddingLeft">@dimen/dismiss_button_padding_start</item>
163        <item name="android:paddingRight">@dimen/dismiss_button_padding_end</item>
164    </style>
165
166    <!-- Style applied to the "Settings" screen.  Keep in sync with SettingsLight in Telephony. -->
167    <style name="SettingsStyle" parent="DialtactsThemeWithoutActionBarOverlay">
168        <!-- Setting text. -->
169        <item name="android:textColor">@color/setting_primary_color</item>
170        <!-- Setting description. -->
171        <item name="android:textColorSecondary">@color/setting_secondary_color</item>
172        <item name="android:windowBackground">@color/setting_background_color</item>
173        <item name="android:colorAccent">@color/dialtacts_theme_color</item>
174        <item name="android:textColorLink">@color/dialtacts_theme_color</item>
175    </style>
176
177    <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
178    since the Alert dialog is private. They are identical anyway. -->
179    <style name="AlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
180        <item name="android:colorAccent">@color/dialtacts_theme_color</item>
181    </style>
182</resources>
183