<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>

    <style name="DetailActivityTheme" parent="@android:style/Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/ContactsActionBarStyle</item>
        <item name="android:homeAsUpIndicator">@drawable/ic_menu_back</item>
        <item name="android:actionOverflowButtonStyle">@style/ContactsActionBarOverflow</item>
        <item name="android:actionBarItemBackground">@drawable/action_bar_item_background</item>
        <item name="android:actionBarWidgetTheme">@style/ContactsActionBarTheme</item>
        <item name="android:textColorPrimary">@color/primary_text_color</item>
        <item name="android:textColorSecondary">@color/secondary_text_color</item>
        <item name="android:listViewStyle">@style/ListViewStyle</item>
    </style>

    <style name="EditorActivityTheme" parent="@style/PeopleTheme">
        <item name="android:listViewStyle">@style/ListViewStyle</item>
        <item name="android:actionBarStyle">@style/EditorActionBarStyle</item>
    </style>

    <style name="Theme">
    </style>

    <style name="Theme.QuickContact" parent="@style/PeopleTheme">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowFrame">@null</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:windowIsFloating">false</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:listViewStyle">@style/ListViewStyle</item>
        <!-- We need to use a light ripple behind ActionBar items in order for them to
             be visible when using some of the darker ActionBar tints -->
        <item name="android:actionBarItemBackground">@drawable/item_background_material_borderless_dark</item>
    </style>

    <style name="PeopleTheme" parent="@android:style/Theme.Material.Light">
        <item name="android:actionBarStyle">@style/ContactsActionBarStyle</item>
        <!-- Style for the tab bar (for the divider between tabs) -->
        <item name="android:actionBarTabBarStyle">@style/ContactsActionBarTabBarStyle</item>
        <!-- Style for the tab bar text (for text on tabs) -->
        <item name="android:actionBarTabTextStyle">@style/ContactsActionBarTabTextStyle</item>
        <!--  Drawable for the back button -->
        <item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
        <!-- Style for the overflow button in the actionbar. -->
        <item name="android:actionOverflowButtonStyle">@style/ContactsActionBarOverflowQP</item>
        <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb</item>
        <item name="android:textColorPrimary">@color/primary_text_color</item>
        <item name="android:textColorSecondary">@color/secondary_text_color</item>
        <item name="android:icon">@android:color/transparent</item>
        <item name="android:listViewStyle">@style/ListViewStyle</item>
        <item name="android:windowBackground">@color/background_primary</item>
        <item name="android:colorPrimaryDark">@color/primary_color_dark</item>
        <item name="android:colorPrimary">@color/primary_color</item>
        <item name="android:colorAccent">@color/primary_color</item>
        <item name="android:alertDialogTheme">@style/ContactsAlertDialogTheme</item>
        <item name="list_item_height">?android:attr/listPreferredItemHeight</item>
        <item name="activated_background">@drawable/list_item_activated_background</item>
        <item name="section_header_background">@drawable/list_title_holo</item>
        <item name="list_section_header_height">24dip</item>
        <item name="list_item_padding_top">
            @dimen/contact_browser_list_item_padding_top_or_bottom
        </item>
        <item name="list_item_padding_right">32dp</item>
        <item name="list_item_padding_bottom">
            @dimen/contact_browser_list_item_padding_top_or_bottom
        </item>
        <item name="list_item_padding_left">16dip</item>
        <item name="list_item_gap_between_image_and_text">
            @dimen/contact_browser_list_item_gap_between_image_and_text
        </item>
        <item name="list_item_gap_between_label_and_data">5dip</item>
        <item name="list_item_presence_icon_margin">4dip</item>
        <item name="list_item_presence_icon_size">16dip</item>
        <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
        <item name="list_item_profile_photo_size">70dip</item>
        <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
        <item name="list_item_background_color">@color/list_item_pinned_header_color</item>
        <item name="list_item_header_text_color">@color/people_app_theme_color</item>
        <item name="list_item_header_text_size">14sp</item>
        <item name="list_item_header_height">30dip</item>
        <item name="list_item_data_width_weight">5</item>
        <item name="list_item_label_width_weight">3</item>
        <item name="list_item_header_text_indent">8dip</item>
        <item name="contact_browser_list_padding_left">0dip</item>
        <item name="contact_browser_list_padding_right">0dip</item>
        <item name="contact_browser_background">@color/background_primary</item>
        <item name="list_item_text_indent">@dimen/contact_browser_list_item_text_indent</item>
        <!-- Favorites -->
        <item name="favorites_padding_bottom">0dip</item>
    </style>

    <style name="ContactsActionBarOverflow" parent="@android:style/Widget.Holo.ActionButton.Overflow">
        <item name="android:src">@drawable/ic_overflow_menu</item>
    </style>

    <!-- Use the non-light style so that the up button & icons aren't black. If we use the
         Light style, then it is impossible to tint the homeAsUp icon anything other than black -->
    <style name="ContactsActionBarStyle" parent="@android:style/Widget.Material.ActionBar">
        <item name="android:background">@color/actionbar_background_color</item>
        <item name="android:titleTextStyle">@style/ContactsActionBarTitleText</item>
        <item name="android:backgroundStacked">@color/actionbar_background_color</item>
        <!-- Empty icon -->
        <item name="android:icon">@android:color/transparent</item>
    </style>

    <style name="EditorActionBarStyle" parent="@style/ContactsActionBarStyle">
        <!-- Do not use a contentInsetStart, since we are setting a custom ActionBar view -->
        <item name="android:contentInsetStart">0dp</item>
    </style>

    <!-- When this style was added, android:toolbarStyle was private. Therefore, this style
         must be directly applied to every toolbar -->
    <style name="ContactsToolbarStyle" parent="@android:style/Widget.Toolbar">
        <item name="android:titleTextAppearance">@style/ContactsActionBarTitleText</item>
    </style>

    <style name="ContactsPickerActionBarStyle" parent="@style/ContactsActionBarStyle">
        <!-- when first loading, don't show title or up button -->
        <item name="android:displayOptions"></item>
    </style>

    <style name="ContactPickerSearchTheme" parent="@style/PeopleTheme">
        <item name="android:textColorPrimary">@android:color/white</item>
        <item name="android:textColorHint">?android:textColorHintInverse</item>
        <item name="android:colorControlActivated">?android:textColorHintInverse</item>
        <item name="android:colorControlNormal">@android:color/white</item>
    </style>

    <!-- Text in the action bar at the top of the screen -->
    <style name="ContactsActionBarTitleText"
           parent="@android:style/TextAppearance.Material.Widget.ActionBar.Title">
        <item name="android:textColor">@color/actionbar_text_color</item>
    </style>

    <!-- Styling for the tab bar; handles styling of the divider line. -->
    <style name="ContactsActionBarTabBarStyle"
           parent="@android:style/Widget.Material.ActionBar.TabBar">
        <item name="android:showDividers">none</item>
    </style>

    <!-- Text style for tabs. -->
    <style name="ContactsActionBarTabTextStyle"
           parent="android:style/Widget.Material.Light.ActionBar.TabText">
        <item name="android:textColor">@color/tab_text_color</item>
        <item name="android:textSize">@dimen/tab_text_size</item>
        <item name="android:fontFamily">@string/tab_font_family</item>
        <item name="android:textStyle">bold</item>
    </style>

    <!-- Action bar overflow menu icon. -->
    <style name="ContactsActionBarOverflowQP"
           parent="@android:style/Widget.Material.Light.ActionButton.Overflow">
        <item name="android:src">@drawable/ic_menu_overflow_lt</item>
    </style>

    <style name="ContactsActionBarDropDownStyle" parent="@android:style/Widget.Holo.Light.Spinner">
        <item name="android:background">@drawable/ab_dropdown_navigation_item_background</item>
    </style>

    <style name="ContactsActionBarTheme" parent="@android:style/Theme.Holo.Light">
        <item name="android:textColorHint">#CCCCCC</item>
        <item name="android:textColor">@android:color/black</item>
        <item name="android:popupMenuStyle">@android:style/Widget.Holo.Light.PopupMenu</item>
        <item name="android:dropDownListViewStyle">@style/ListViewDropdownStyle</item>
    </style>

    <style name="ListViewDropdownStyle" parent="@android:style/Widget.ListView.DropDown">
        <item name="android:listSelector">?android:attr/listChoiceBackgroundIndicator</item>
    </style>

    <style name="ContactPickerTheme" parent="@style/PeopleTheme" >
        <item name="android:actionBarStyle">@style/ContactsPickerActionBarStyle</item>
    </style>

    <style name="ContactPickerLayout" parent="ContactPickerTheme">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</item>
    </style>

    <style name="ContactsPreferencesTheme" parent="@style/PeopleTheme">
        <item name="android:listViewStyle">@style/ListViewStyle</item>
    </style>

    <style name="ContactListFilterTheme" parent="@style/PeopleTheme">
        <item name="android:listViewStyle">@style/ListViewStyle</item>
    </style>

    <style name="NonPhoneActivityTheme" parent="@android:Theme.Translucent.NoTitleBar">
    </style>

    <style name="NonPhoneDialogTheme" parent="@android:Theme.Material.Light.Dialog">
    </style>

    <style name="ConfirmAddDetailDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.MinWidth">
        <item name="android:windowCloseOnTouchOutside">true</item>
    </style>

    <style name="ContactEditorAccountsChangedActivityTheme" parent="@android:style/Theme.Material.Light.Dialog.NoActionBar.MinWidth">
        <item name="android:windowCloseOnTouchOutside">true</item>
        <item name="android:textColorPrimary">@color/primary_text_color</item>
        <item name="android:textColorSecondary">@color/secondary_text_color</item>
        <item name="android:listViewStyle">@style/ListViewStyle</item>
    </style>

    <style name="SectionDivider">
        <item name="android:background">#7e7e87</item>
        <item name="android:layout_height">1dip</item>
        <item name="android:layout_width">match_parent</item>
    </style>

    <style name="ConfirmAddDetailViewStyle">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
    </style>

    <style name="ConfirmAddDetailHeaderViewStyle">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">150dip</item>
    </style>

    <style name="SelectableItem" parent="@android:style/Theme.Material.Light">
        <item name="android:background">?android:attr/selectableItemBackground</item>
    </style>

    <style name="QuickContactListItemTextWrapperStyle">
        <item name="android:layout_width">0dip</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_weight">1</item>
        <item name="android:paddingLeft">16dip</item>
        <item name="android:paddingRight">16dip</item>
        <item name="android:paddingStart">16dip</item>
        <item name="android:paddingEnd">16dip</item>
        <item name="android:gravity">center_vertical</item>
        <item name="android:orientation">vertical</item>
    </style>

    <style name="Theme.PhotoSelector" parent="@android:style/Theme.Holo.Light">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowFrame">@null</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:backgroundDimEnabled">false</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <style name="GroupMembershipSizeTextAppearance" parent="@android:style/TextAppearance.Small"/>

    <style name="PeopleNavigationDropDownTextAppearance">
        <item name="android:textColor">@color/primary_text_color</item>
        <item name="android:textSize">18sp</item>
    </style>

    <style name="PeopleNavigationDropDownHeaderTextAppearance">
        <item name="android:textColor">@color/primary_text_color</item>
        <item name="android:textSize">18sp</item>
    </style>

    <style name="ExpandingEntryCardStyle">
        <item name="android:elevation">@dimen/expanding_entry_card_elevation</item>
        <item name="android:background">@color/expanding_entry_card_background_color</item>
        <item name="android:layout_marginBottom">@dimen/expanding_entry_card_marginBottom</item>
        <item name="android:layout_marginEnd">@dimen/expanding_entry_card_marginStartEnd</item>
        <item name="android:layout_marginStart">@dimen/expanding_entry_card_marginStartEnd</item>
        <item name="android:orientation">vertical</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
    </style>

    <style name="SpinnerButtonStyle" parent="@android:style/Widget.Material.Spinner">
        <!-- When applying the spinner style to a Button we need to disable the shadow animation
            on the button since the spinner background is transparent. Otherwise the spinner-button
            will look ridiculous. -->
        <item name="android:stateListAnimator">@null</item>
    </style>

    <style name="EditKindSeparatorTextViewStyle" parent="ContactListSeparatorTextViewStyle">
        <item name="android:textAppearance">@style/EditKindTextAppearanceStyle</item>
    </style>

    <style name="EditKindTextAppearanceStyle" parent="@android:style/TextAppearance.Small">
        <item name="android:textSize">14sp</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textAllCaps">true</item>
        <item name="android:textColor">#363636</item>
        <item name="android:fontFamily">sans-serif</item>
    </style>

    <!-- Inherit from Theme.Material.Light.Dialog instead of Theme.Material.Light.Dialog.Alert
        since the Alert dialog is private. They are identical anyway. -->
    <style name="ContactsAlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog">
        <item name="android:colorAccent">@color/primary_color</item>
    </style>
</resources>