Home | History | Annotate | Download | only in values
      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" parent="Theme.AppCompat.Light">
     19         <item name="android:textColorPrimary">@color/dialtacts_primary_text_color</item>
     20         <item name="android:textColorSecondary">@color/dialtacts_secondary_text_color</item>
     21 
     22         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
     23         <item name="android:windowActionBarOverlay">true</item>
     24         <item name="windowActionBarOverlay">true</item>
     25         <item name="android:windowActionModeOverlay">true</item>
     26         <item name="windowActionModeOverlay">true</item>
     27         <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item>
     28         <item name="actionBarStyle">@style/DialtactsActionBarStyle</item>
     29         <!-- Style for the overflow button in the actionbar. -->
     30         <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
     31         <item name="actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
     32 
     33         <!--  Drawable for the back button -->
     34         <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
     35         <item name="android:windowContentOverlay">@null</item>
     36         <item name="android:listViewStyle">@style/ListViewStyle</item>
     37         <item name="android:overlapAnchor">true</item>
     38         <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
     39         <item name="activated_background">@drawable/list_item_activated_background</item>
     40         <item name="section_header_background">@drawable/list_title_holo</item>
     41         <item name="list_section_header_height">32dip</item>
     42         <item name="list_item_padding_top">12dp</item>
     43         <item name="list_item_padding_right">24dp</item>
     44         <item name="list_item_padding_bottom">12dp</item>
     45         <item name="list_item_padding_left">16dp</item>
     46         <item name="list_item_gap_between_image_and_text">
     47             @dimen/contact_browser_list_item_gap_between_image_and_text
     48         </item>
     49         <item name="list_item_gap_between_label_and_data">8dip</item>
     50         <item name="list_item_presence_icon_margin">4dip</item>
     51         <item name="list_item_presence_icon_size">16dip</item>
     52         <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
     53         <item name="list_item_profile_photo_size">70dip</item>
     54         <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
     55         <item name="list_item_background_color">@color/background_dialer_light</item>
     56         <item name="list_item_header_text_indent">8dip</item>
     57         <item name="list_item_header_text_color">@color/dialtacts_secondary_text_color</item>
     58         <item name="list_item_header_text_size">14sp</item>
     59         <item name="list_item_header_height">30dip</item>
     60         <item name="list_item_data_width_weight">5</item>
     61         <item name="list_item_label_width_weight">3</item>
     62         <item name="contact_browser_list_padding_left">0dp</item>
     63         <item name="contact_browser_list_padding_right">0dp</item>
     64         <item name="contact_browser_background">@color/background_dialer_results</item>
     65         <item name="list_item_name_text_color">@color/contact_list_name_text_color</item>
     66         <item name="list_item_name_text_size">16sp</item>
     67         <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
     68         <item name="list_item_text_offset_top">-2dp</item>
     69         <!-- CallLog -->
     70         <item name="call_log_primary_text_color">@color/dialtacts_primary_text_color</item>
     71         <item name="call_log_primary_background_color">#000000</item>
     72         <item name="call_log_secondary_text_color">@color/dialtacts_secondary_text_color</item>
     73         <item name="call_log_secondary_background_color">#333333</item>
     74         <item name="call_log_header_color">#33b5e5</item>
     75         <!-- VoicemailStatus -->
     76         <item name="call_log_voicemail_status_height">48dip</item>
     77         <item name="call_log_voicemail_status_background_color">#262626</item>
     78         <item name="call_log_voicemail_status_text_color">#888888</item>
     79         <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
     80             <!-- Favorites -->
     81         <item name="favorites_padding_bottom">?android:attr/actionBarSize</item>
     82         <item name="android:colorPrimary">@color/dialer_theme_color</item>
     83         <item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
     84         <item name="dialpad_key_button_touch_tint">@color/dialer_dialpad_touch_tint</item>
     85         <item name="android:colorControlActivated">@color/dialer_theme_color</item>
     86         <item name="android:colorButtonNormal">@color/dialer_theme_color</item>
     87         <item name="android:textAppearanceButton">@style/DialerButtonTextStyle</item>
     88 
     89         <!-- Video call icon -->
     90         <item name="list_item_video_call_icon_size">32dip</item>
     91         <item name="list_item_video_call_icon_margin">8dip</item>
     92     </style>
     93 
     94     <style name="DialerButtonTextStyle" parent="@android:style/TextAppearance.Material.Widget.Button">
     95         <item name="android:textColor">#fff</item>
     96     </style>
     97 
     98     <!-- Action bar overflow menu icon. -->
     99     <style name="DialtactsActionBarOverflow"
    100            parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
    101         <item name="android:src">@drawable/ic_overflow_menu</item>
    102     </style>
    103 
    104     <!-- Action bar overflow menu icon.  White with no shadow. -->
    105     <style name="DialtactsActionBarOverflowWhite"
    106            parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
    107         <item name="android:src">@drawable/overflow_menu</item>
    108     </style>
    109 
    110     <style name="DialpadTheme" parent="DialtactsTheme">
    111         <item name="android:textColorPrimary">#FFFFFF</item>
    112     </style>
    113 
    114     <style name="DialtactsThemeWithoutActionBarOverlay" parent="DialtactsTheme">
    115         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
    116         <item name="android:windowActionBarOverlay">false</item>
    117         <item name="windowActionBarOverlay">false</item>
    118         <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item>
    119         <item name="actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item>
    120     </style>
    121 
    122     <!-- Hide the actionbar title during the activity preview -->
    123     <style name="DialtactsActivityTheme" parent="DialtactsTheme">
    124         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
    125         <item name="android:actionBarStyle">@style/DialtactsActionBarWithoutTitleStyle</item>
    126         <item name="actionBarStyle">@style/DialtactsActionBarWithoutTitleStyle</item>
    127 
    128         <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item>
    129         <item name="android:fastScrollTrackDrawable">@null</item>
    130     </style>
    131 
    132     <style name="CallDetailActivityTheme" parent="DialtactsThemeWithoutActionBarOverlay">
    133         <item name="android:windowBackground">@color/background_dialer_results</item>
    134         <!-- CallLog -->
    135         <item name="call_log_primary_background_color">#FFFFFF</item>
    136         <item name="call_log_secondary_background_color">#FFFFFF</item>
    137         <item name="call_log_header_color">#FFFFFF</item>
    138         <!-- VoicemailStatus -->
    139         <item name="call_log_voicemail_status_height">48dip</item>
    140         <item name="call_log_voicemail_status_background_color">#262626</item>
    141         <item name="call_log_voicemail_status_text_color">#888888</item>
    142         <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
    143         <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflowWhite</item>
    144     </style>
    145 
    146     <style name="CallDetailActionItemStyle">
    147         <item name="android:foreground">?android:attr/selectableItemBackground</item>
    148         <item name="android:clickable">true</item>
    149         <item name="android:drawablePadding">@dimen/call_detail_action_item_drawable_padding</item>
    150         <item name="android:gravity">center_vertical</item>
    151         <item name="android:paddingStart">@dimen/call_detail_action_item_padding_horizontal</item>
    152         <item name="android:paddingEnd">@dimen/call_detail_action_item_padding_horizontal</item>
    153         <item name="android:paddingTop">@dimen/call_detail_action_item_padding_vertical</item>
    154         <item name="android:paddingBottom">@dimen/call_detail_action_item_padding_vertical</item>
    155         <item name="android:textColor">@color/call_detail_footer_text_color</item>
    156         <item name="android:textSize">@dimen/call_detail_action_item_text_size</item>
    157     </style>
    158 
    159     <style name="DialtactsActionBarStyle"
    160            parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
    161         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
    162         <item name="android:background">@color/actionbar_background_color</item>
    163         <item name="background">@color/actionbar_background_color</item>
    164         <item name="android:titleTextStyle">@style/DialtactsActionBarTitleText</item>
    165         <item name="titleTextStyle">@style/DialtactsActionBarTitleText</item>
    166         <item name="android:height">@dimen/action_bar_height</item>
    167         <item name="height">@dimen/action_bar_height</item>
    168         <item name="android:elevation">@dimen/action_bar_elevation</item>
    169         <item name="elevation">@dimen/action_bar_elevation</item>
    170         <!-- Empty icon -->
    171         <item name="android:icon">@android:color/transparent</item>
    172         <item name="icon">@android:color/transparent</item>
    173         <!-- Shift the title text to the right -->
    174         <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
    175         <item name="contentInsetStart">@dimen/actionbar_contentInsetStart</item>
    176     </style>
    177 
    178     <style name="DialtactsActionBarWithoutTitleStyle" parent="DialtactsActionBarStyle">
    179         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
    180         <item name="android:displayOptions"></item>
    181         <item name="displayOptions"></item>
    182         <item name="android:height">@dimen/action_bar_height_large</item>
    183         <item name="height">@dimen/action_bar_height_large</item>
    184         <!-- Override ActionBar title offset to keep search box aligned left -->
    185         <item name="android:contentInsetStart">0dp</item>
    186         <item name="contentInsetStart">0dp</item>
    187         <item name="android:contentInsetEnd">0dp</item>
    188         <item name="contentInsetEnd">0dp</item>
    189     </style>
    190 
    191     <!-- Text in the action bar at the top of the screen -->
    192     <style name="DialtactsActionBarTitleText"
    193            parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
    194         <item name="android:textColor">@color/actionbar_text_color</item>
    195     </style>
    196 
    197     <!-- Text style for tabs. -->
    198     <style name="DialtactsActionBarTabTextStyle"
    199            parent="android:style/Widget.Material.Light.ActionBar.TabText">
    200         <item name="android:textColor">@color/tab_text_color</item>
    201         <item name="android:textSize">@dimen/tab_text_size</item>
    202         <item name="android:fontFamily">"sans-serif-medium"</item>
    203     </style>
    204 
    205     <style name="ListViewStyle" parent="@android:style/Widget.Material.Light.ListView">
    206         <item name="android:overScrollMode">always</item>
    207     </style>
    208 
    209     <style name="CallLogActionStyle">
    210         <item name="android:layout_width">match_parent</item>
    211         <item name="android:layout_height">@dimen/call_log_action_height</item>
    212         <item name="android:background">?android:attr/selectableItemBackground</item>
    213         <item name="android:orientation">horizontal</item>
    214         <item name="android:gravity">center_vertical</item>
    215     </style>
    216 
    217     <style name="CallLogActionTextStyle">
    218         <item name="android:layout_width">match_parent</item>
    219         <item name="android:layout_height">wrap_content</item>
    220         <item name="android:paddingStart">@dimen/call_log_action_horizontal_padding</item>
    221         <item name="android:paddingEnd">@dimen/call_log_action_horizontal_padding</item>
    222         <item name="android:textColor">@color/call_log_action_color</item>
    223         <item name="android:textSize">@dimen/call_log_primary_text_size</item>
    224         <item name="android:fontFamily">"sans-serif"</item>
    225         <item name="android:focusable">true</item>
    226         <item name="android:singleLine">true</item>
    227         <item name="android:importantForAccessibility">no</item>
    228     </style>
    229 
    230     <style name="CallLogActionSupportTextStyle" parent="@style/CallLogActionTextStyle">
    231         <item name="android:textSize">@dimen/call_log_detail_text_size</item>
    232         <item name="android:textColor">@color/call_log_detail_color</item>
    233     </style>
    234 
    235     <style name="CallLogActionIconStyle">
    236         <item name="android:layout_width">@dimen/call_log_action_icon_dimen</item>
    237         <item name="android:layout_height">@dimen/call_log_action_icon_dimen</item>
    238         <item name="android:layout_marginStart">@dimen/call_log_action_icon_margin_start</item>
    239         <item name="android:tint">?attr/call_log_secondary_text_color</item>
    240         <item name="android:importantForAccessibility">no</item>
    241     </style>
    242 
    243     <style name="DismissButtonStyle">
    244         <item name="android:paddingLeft">@dimen/dismiss_button_padding_start</item>
    245         <item name="android:paddingRight">@dimen/dismiss_button_padding_end</item>
    246     </style>
    247 
    248     <!-- Style applied to the "Settings" screen.  Keep in sync with SettingsLight in Telephony. -->
    249     <style name="SettingsStyle" parent="DialtactsThemeWithoutActionBarOverlay">
    250         <!-- Setting text. -->
    251         <item name="android:textColorPrimary">@color/settings_text_color_primary</item>
    252         <!-- Setting description. -->
    253         <item name="android:textColorSecondary">@color/settings_text_color_secondary</item>
    254         <item name="android:windowBackground">@color/setting_background_color</item>
    255         <item name="android:colorAccent">@color/dialtacts_theme_color</item>
    256         <item name="android:textColorLink">@color/dialtacts_theme_color</item>
    257     </style>
    258 
    259     <style name="ManageBlockedNumbersStyle" parent="SettingsStyle">
    260         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
    261         <item name="android:windowActionBarOverlay">true</item>
    262         <item name="windowActionBarOverlay">true</item>
    263         <item name="android:actionBarStyle">@style/ManageBlockedNumbersActionBarStyle</item>
    264         <item name="actionBarStyle">@style/ManageBlockedNumbersActionBarStyle</item>
    265         <item name="android:fastScrollTrackDrawable">@null</item>
    266     </style>
    267 
    268     <style name="ManageBlockedNumbersActionBarStyle" parent="DialtactsActionBarWithoutTitleStyle">
    269         <!-- Styles that require AppCompat compatibility, remember to update both sets -->
    270         <item name="android:height">@dimen/action_bar_height</item>
    271         <item name="height">@dimen/action_bar_height</item>
    272     </style>
    273 
    274     <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
    275     since the Alert dialog is private. They are identical anyway. -->
    276     <style name="AlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
    277         <item name="android:colorAccent">@color/dialtacts_theme_color</item>
    278     </style>
    279 
    280     <style name="CallLogCardStyle" parent="CardView">
    281         <item name="android:layout_width">match_parent</item>
    282         <item name="android:layout_height">wrap_content</item>
    283         <item name="android:layout_margin">4dp</item>
    284         <item name="android:baselineAligned">false</item>
    285         <item name="cardCornerRadius">2dp</item>
    286         <item name="cardBackgroundColor">@color/background_dialer_call_log_list_item</item>
    287     </style>
    288 
    289     <style name="TextActionStyle">
    290         <item name="android:layout_width">wrap_content</item>
    291         <item name="android:layout_height">@dimen/call_log_action_height</item>
    292         <item name="android:gravity">end|center_vertical</item>
    293         <item name="android:paddingStart">@dimen/call_log_action_horizontal_padding</item>
    294         <item name="android:paddingEnd">@dimen/call_log_action_horizontal_padding</item>
    295         <item name="android:textColor">@color/dialtacts_theme_color</item>
    296         <item name="android:fontFamily">"sans-serif-medium"</item>
    297         <item name="android:focusable">true</item>
    298         <item name="android:singleLine">true</item>
    299         <item name="android:textAllCaps">true</item>
    300     </style>
    301 
    302     <style name="PromoCardActionStyle" parent="TextActionStyle">
    303         <item name="android:textColor">@color/promo_card_text</item>
    304         <item name="android:textSize">@dimen/call_log_primary_text_size</item>
    305     </style>
    306 
    307     <style name="VoicemailPlaybackLayoutTextStyle">
    308         <item name="android:textSize">14sp</item>
    309     </style>
    310 
    311     <style name="VoicemailPlaybackLayoutButtonStyle">
    312         <item name="android:layout_width">56dp</item>
    313         <item name="android:layout_height">56dp</item>
    314         <item name="android:background">@drawable/oval_ripple</item>
    315         <item name="android:padding">8dp</item>
    316     </style>
    317 
    318     <style name="DialerFlatButtonStyle" parent="@android:style/Widget.Material.Button">
    319         <item name="android:background">?android:attr/selectableItemBackground</item>
    320         <item name="android:paddingEnd">@dimen/button_horizontal_padding</item>
    321         <item name="android:paddingStart">@dimen/button_horizontal_padding</item>
    322         <item name="android:textColor">@color/dialer_flat_button_text_color</item>
    323     </style>
    324 
    325     <!-- Style for the 'primary' button in a view. Unlike the DialerFlatButtonStyle, this button -->
    326     <!-- is not colored white, to draw more attention to it. -->
    327     <style name="DialerPrimaryFlatButtonStyle" parent="@android:style/Widget.Material.Button">
    328         <item name="android:background">@drawable/selectable_primary_flat_button</item>
    329         <item name="android:paddingEnd">@dimen/button_horizontal_padding</item>
    330         <item name="android:paddingStart">@dimen/button_horizontal_padding</item>
    331         <item name="android:textColor">@android:color/white</item>
    332     </style>
    333 
    334     <style name="BlockedNumbersDescriptionTextStyle">
    335         <item name="android:lineSpacingMultiplier">1.43</item>
    336         <item name="android:paddingTop">8dp</item>
    337         <item name="android:paddingBottom">8dp</item>
    338         <item name="android:textSize">@dimen/blocked_number_settings_description_text_size</item>
    339     </style>
    340 
    341     <style name="FullWidthDivider">
    342         <item name="android:layout_width">match_parent</item>
    343         <item name="android:layout_height">1dp</item>
    344         <item name="android:background">?android:attr/listDivider</item>
    345     </style>
    346 </resources>
    347