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"
     19            parent="android:Theme.Holo.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">false</item>
     23         <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item>
     24         <!-- Style for the tabs (for the tabs) -->
     25         <item name="android:actionBarTabStyle">@style/DialtactsActionBarTabStyle</item>
     26         <!-- Style for the tab bar (for the divider between tabs) -->
     27         <item name="android:actionBarTabBarStyle">@style/DialtactsActionBarTabBarStyle</item>
     28         <!-- Style for the tab bar text (for text on tabs) -->
     29         <item name="android:actionBarTabTextStyle">@style/DialtactsActionBarTabTextStyle</item>
     30         <!-- Style for the overflow button in the actionbar. -->
     31         <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
     32         <!-- The "Up" icon in the action bar. -->
     33         <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
     34         <item name="android:windowContentOverlay">@null</item>
     35         <!--  Searchbox Style -->
     36         <item name="android:editTextStyle">@style/DialtactsSearchboxStyle</item>
     37         <item name="android:listViewStyle">@style/ListViewStyle</item>
     38         <item name="activated_background">@drawable/list_item_activated_background</item>
     39         <item name="section_header_background">@drawable/list_title_holo</item>
     40         <item name="list_section_header_height">32dip</item>
     41         <item name="list_item_divider">?android:attr/listDivider</item>
     42         <item name="list_item_padding_top">8dip</item>
     43         <item name="list_item_padding_right">0dip</item>
     44         <item name="list_item_padding_bottom">8dip</item>
     45         <item name="list_item_padding_left">0dip</item>
     46         <item name="list_item_gap_between_image_and_text">8dip</item>
     47         <item name="list_item_gap_between_label_and_data">5dip</item>
     48         <item name="list_item_presence_icon_margin">4dip</item>
     49         <item name="list_item_presence_icon_size">16dip</item>
     50         <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
     51         <item name="list_item_profile_photo_size">70dip</item>
     52         <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
     53         <item name="list_item_header_text_indent">8dip</item>
     54         <item name="list_item_header_text_color">@color/people_app_theme_color</item>
     55         <item name="list_item_header_text_size">14sp</item>
     56         <item name="list_item_header_height">30dip</item>
     57         <item name="list_item_header_underline_height">1dip</item>
     58         <item name="list_item_header_underline_color">@color/favorite_contacts_separator_color</item>
     59         <item name="list_item_data_width_weight">5</item>
     60         <item name="list_item_label_width_weight">3</item>
     61         <item name="contact_browser_list_padding_left">8dip</item>
     62         <item name="contact_browser_list_padding_right">0dip</item>
     63         <item name="contact_browser_background">@android:color/transparent</item>
     64         <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
     65         <!-- CallLog -->
     66         <item name="call_log_primary_text_color">#000000</item>
     67         <item name="call_log_primary_background_color">#000000</item>
     68         <item name="call_log_secondary_text_color">@color/dialtacts_secondary_text_color</item>
     69         <item name="call_log_secondary_background_color">#333333</item>
     70         <item name="call_log_header_color">#33b5e5</item>
     71         <!-- VoicemailStatus -->
     72         <item name="call_log_voicemail_status_height">48dip</item>
     73         <item name="call_log_voicemail_status_background_color">#262626</item>
     74         <item name="call_log_voicemail_status_text_color">#888888</item>
     75         <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
     76             <!-- Favorites -->
     77         <item name="favorites_padding_bottom">?android:attr/actionBarSize</item>
     78     </style>
     79 
     80     <!-- An extension of the main DialtactsTheme used when the the launcher activity is shown.
     81          Ensures that there is no actionbar showing during the load of the dialer app. -->
     82     <style name="DialtactsThemeHiddenActionBar" parent="DialtactsTheme">
     83         <item name="android:actionBarStyle">@style/DialtactsHiddenActionBarStyle</item>
     84     </style>
     85 
     86     <!-- A "hidden" action bar style.  Used when loading the launcher activity so that the
     87          default actionbar is effectively hidden. -->
     88     <style name="DialtactsHiddenActionBarStyle" parent="DialtactsActionBarStyle">
     89         <item name="android:background">@color/background_dialer_light</item>
     90         <item name="android:titleTextStyle">@style/DialtactsHiddenActionBarTextStyle</item>
     91     </style>
     92 
     93     <style name="DialtactsHiddenActionBarTextStyle" parent="@android:style/TextAppearance">
     94         <item name="android:textColor">@color/background_dialer_light</item>
     95     </style>
     96 
     97     <!-- Action bar overflow menu icon. -->
     98     <style name="DialtactsActionBarOverflow"
     99            parent="@android:style/Widget.Holo.ActionButton.Overflow">
    100         <item name="android:src">@drawable/ic_menu_overflow_lt</item>
    101     </style>
    102 
    103     <style name="DialpadTheme" parent="DialtactsTheme">
    104         <item name="android:textColorPrimary">#FFFFFF</item>
    105     </style>
    106 
    107     <style name="DialtactsThemeWithActionBarOverlay" parent="DialtactsTheme">
    108         <item name="android:windowActionBarOverlay">true</item>
    109     </style>
    110 
    111     <style name="CallDetailActivityTheme" parent="android:Theme.Holo.Light">
    112         <item name="android:windowBackground">@color/background_dialer_list_items</item>
    113         <item name="android:gravity">top</item>
    114         <item name="android:listViewStyle">@style/ListViewStyle</item>
    115         <item name="android:actionBarStyle">@style/DialtactsActionBarStyle</item>
    116         <item name="android:actionOverflowButtonStyle">@style/DialtactsActionBarOverflow</item>
    117         <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
    118         <!-- CallLog -->
    119         <item name="call_log_primary_text_color">#333333</item>
    120         <item name="call_log_primary_background_color">#FFFFFF</item>
    121         <item name="call_log_secondary_text_color">#333333</item>
    122         <item name="call_log_secondary_background_color">#FFFFFF</item>
    123         <item name="call_log_header_color">#FFFFFF</item>
    124         <!-- VoicemailStatus -->
    125         <item name="call_log_voicemail_status_height">48dip</item>
    126         <item name="call_log_voicemail_status_background_color">#262626</item>
    127         <item name="call_log_voicemail_status_text_color">#888888</item>
    128         <item name="call_log_voicemail_status_action_text_color">#33b5e5</item>
    129     </style>
    130 
    131     <style name="DialpadKeyNumberStyle">
    132         <item name="android:textColor">@color/actionbar_background_color</item>
    133         <item name="android:textSize">@dimen/dialpad_key_numbers_size</item>
    134         <item name="android:fontFamily">sans-serif-light</item>
    135         <item name="android:layout_width">@dimen/dialpad_key_numbers_width</item>
    136         <item name="android:layout_height">wrap_content</item>
    137         <item name="android:gravity">center</item>
    138     </style>
    139 
    140     <style name="DialpadKeyStarPoundStyle">
    141         <item name="android:textColor">@color/dialpad_secondary_text_color</item>
    142         <item name="android:textSize">@dimen/dialpad_key_star_pound_size</item>
    143         <item name="android:fontFamily">sans-serif-light</item>
    144         <item name="android:layout_width">@dimen/dialpad_key_numbers_width</item>
    145         <item name="android:layout_height">wrap_content</item>
    146         <item name="android:gravity">center</item>
    147     </style>
    148 
    149     <style name="DialpadKeyLettersStyle">
    150         <item name="android:textColor">@color/dialpad_secondary_text_color</item>
    151         <item name="android:textSize">@dimen/dialpad_key_letters_size</item>
    152         <item name="android:fontFamily">sans-serif-light</item>
    153         <item name="android:layout_width">@dimen/dialpad_key_letters_width</item>
    154         <item name="android:layout_height">wrap_content</item>
    155         <item name="android:paddingLeft">@dimen/dialpad_number_to_letters_padding</item>
    156     </style>
    157 
    158     <style name="DialpadKeyButtonStyle">
    159         <item name="android:soundEffectsEnabled">false</item>
    160         <item name="android:clickable">true</item>
    161         <item name="android:layout_width">fill_parent</item>
    162         <item name="android:layout_height">@dimen/dialpad_key_height</item>
    163         <item name="android:background">@drawable/dialpad_key_colors</item>
    164         <item name="android:focusable">true</item>
    165     </style>
    166 
    167     <style name="DialpadKeyInternalLayoutStyle">
    168         <item name="android:layout_width">wrap_content</item>
    169         <item name="android:layout_height">wrap_content</item>
    170         <item name="android:layout_gravity">center</item>
    171     </style>
    172 
    173     <style name="DialtactsActionBarStyle" parent="android:Widget.Holo.ActionBar">
    174         <item name="android:background">@drawable/call_history_actionbar_background</item>
    175         <item name="android:backgroundStacked">#ffffff</item>
    176         <item name="android:titleTextStyle">@style/DialtactsActionBarTitleText</item>
    177         <!-- Empty icon -->
    178         <item name="android:icon">@android:color/transparent</item>
    179     </style>
    180 
    181     <!-- Text in the action bar at the top of the screen -->
    182     <style name="DialtactsActionBarTitleText"
    183            parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
    184         <item name="android:textColor">@color/actionbar_text_color</item>
    185     </style>
    186 
    187     <!-- Styling for the tab bar; handles styling of the divider line. -->
    188     <style name="DialtactsActionBarTabBarStyle"
    189            parent="@android:style/Widget.Holo.ActionBar.TabBar">
    190         <item name="android:divider">@drawable/divider</item>
    191         <item name="android:showDividers">middle</item>
    192         <item name="android:dividerPadding">@dimen/tab_divider_padding</item>
    193         <item name="android:background">@drawable/action_bar_tab</item>
    194     </style>
    195 
    196     <!-- Styling for tabs. -->
    197     <style name="DialtactsActionBarTabStyle" parent="@android:style/Widget.Holo.ActionBar.TabView">
    198         <item name="android:background">@drawable/action_bar_tab</item>
    199         <item name="android:showDividers">none</item>
    200     </style>
    201 
    202     <!-- Text style for tabs. -->
    203     <style name="DialtactsActionBarTabTextStyle"
    204            parent="android:style/Widget.Holo.Light.ActionBar.TabText">
    205         <item name="android:textColor">@color/tab_text_color</item>
    206         <item name="android:textSize">@dimen/tab_text_size</item>
    207         <item name="android:fontFamily">@string/tab_font_family</item>
    208         <item name="android:textStyle">bold</item>
    209     </style>
    210 
    211     <style name="ListViewStyle" parent="@android:style/Widget.Holo.Light.ListView">
    212         <item name="android:overScrollMode">always</item>
    213     </style>
    214 
    215     <style name="FragmentActionBarPadding">
    216         <item name="android:paddingBottom">?android:attr/actionBarSize</item>
    217     </style>
    218 
    219     <style name="DialtactsSearchboxStyle" parent="@android:style/Widget.EditText">
    220         <item name="android:background">@null</item>
    221         <item name="android:textColorHint">@color/searchbox_text_color</item>
    222     </style>
    223 
    224     <style name="DismissButtonStyle">
    225         <item name="android:paddingLeft">@dimen/dismiss_button_padding_start</item>
    226         <item name="android:paddingRight">@dimen/dismiss_button_padding_end</item>
    227     </style>
    228 </resources>
    229