<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 Andrew Neal
     Copyright (C) 2014 The CyanogenMod 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 xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- Main Material -->
    <style name="Eleven.Theme" parent="@android:style/Theme.Material.Light.DarkActionBar">
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:popupMenuStyle">@style/PopupMenu</item>
        <item name="android:dropDownListViewStyle">@style/DropDownListView</item>
        <item name="android:textAppearanceSmallPopupMenu">@style/SmallPopupMenu</item>
        <item name="android:textAppearanceLargePopupMenu">@style/LargePopupMenu</item>
        <item name="android:listViewStyle">@style/ListView</item>
        <item name="android:actionBarStyle">@style/ActionBar</item>
        <item name="android:actionBarWidgetTheme">@style/ActionBarWidgetTheme</item>
        <item name="android:colorPrimary">@color/primary</item>
        <item name="android:colorPrimaryDark">@color/primary_dark</item>
        <item name="android:colorAccent">@color/accent</item>
        <item name="android:windowContentTransitions">true</item>
        <item name="android:windowAllowEnterTransitionOverlap">false</item>
        <item name="android:windowAllowReturnTransitionOverlap">false</item>
    </style>

    <style name="ActionBarWidgetTheme" parent="@android:style/Theme.Material">
        <!-- This is the color of the search text hint in the action bar -->
        <item name="android:textColorHint">@color/search_hint_color</item>
        <item name="android:popupMenuStyle">@style/PopupMenu</item>
        <item name="android:dropDownListViewStyle">@style/DropDownListView</item>
        <item name="android:textAppearanceSmallPopupMenu">@style/SmallPopupMenu</item>
        <item name="android:textAppearanceLargePopupMenu">@style/LargePopupMenu</item>
        <!-- Empty icon -->
        <item name="android:icon">@android:color/transparent</item>
    </style>

    <!-- Make the action bar not take up space -->
    <style name="Eleven.Theme.ActionBar.Overlay" parent="@style/Eleven.Theme">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
    </style>

    <!-- Set the default list view divider color and size -->
    <style name="ListView" parent="@android:style/Widget.Material.ListView">
        <item name="android:divider">@color/list_item_divider_color</item>
        <item name="android:dividerHeight">@dimen/divider_height</item>
    </style>

    <style name="PopupMenu" parent="@android:style/Widget.Material.PopupMenu"/>

    <style name="DropDownListView" parent="@android:style/Widget.Material.ListView.DropDown"/>

    <!-- Sets up the pop up menu text color and size -->
    <style name="SmallPopupMenu" parent="@android:style/TextAppearance.Widget.PopupMenu.Small">
        <item name="android:textColor">@color/menu_text_color</item>
        <item name="android:textSize">@dimen/text_size_medium</item>
    </style>

    <!-- Sets up the pop up menu text color and size -->
    <style name="LargePopupMenu" parent="@android:style/TextAppearance.Widget.PopupMenu.Large">
        <item name="android:textColor">@color/menu_text_color</item>
        <item name="android:textSize">@dimen/text_size_medium</item>
    </style>

    <!-- Sets the action bar title text style -->
    <style name="ActionBar" parent="@android:style/Widget.Material.ActionBar">
        <item name="android:background">@color/header_action_bar_color</item>
    </style>

    <!-- Sets the action bar menu icon -->
    <style name="ActionOverFlowButton" parent="@android:style/Widget.Material.ActionButton.Overflow">
        <item name="android:src">@drawable/menu_button_light</item>
        <item name="android:minWidth">0dip</item>
        <item name="android:paddingLeft">8dip</item>
        <item name="android:paddingRight">8dip</item>
    </style>

    <!-- The list item main text style/color -->
    <style name="ListItemMainText">
        <item name="android:textColor">@color/list_item_text_color</item>
        <item name="android:textSize">@dimen/list_item_main_text_size</item>
        <item name="android:textStyle">bold</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="ListItemMainText.Single" parent="ListItemMainText">
        <item name="android:singleLine">true</item>
    </style>

    <style name="ListItemMainText.Grid.Single" parent="ListItemMainText.Single">
        <item name="android:textSize">@dimen/text_size_micro</item>
        <item name="android:textColor">@color/grid_list_item_text_color</item>
    </style>

    <!-- The list item secondary text style/color -->
    <style name="ListItemSecondaryText">
        <item name="android:textColor">@color/list_item_text_color</item>
        <item name="android:textSize">@dimen/list_item_secondary_text_size</item>
        <item name="android:textStyle">normal</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="ListItemSecondaryText.Single" parent="ListItemSecondaryText">
        <item name="android:singleLine">true</item>
    </style>

    <style name="ListItemSecondaryText.Grid.Single" parent="ListItemSecondaryText.Single">
        <item name="android:textSize">@dimen/text_size_extra_micro</item>
        <item name="android:textColor">@color/grid_list_item_text_color</item>
    </style>

    <style name="ListItemMainText.Light.Single" parent="ListItemMainText.Single">
        <item name="android:textColor">@color/list_item_text_color_light</item>
    </style>

    <style name="ListItemSecondaryText.Light.Single" parent="ListItemSecondaryText.Single">
        <item name="android:textColor">@color/list_item_text_color_light</item>
    </style>

    <!-- Shortcut Activity theme -->
    <style name="Theme.Transparent" parent="@android:style/Theme.Material.NoActionBar">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
    </style>

    <style name="Theme.AudioPreview" parent="@android:style/Theme.Material.NoActionBar">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:backgroundDimEnabled">true</item>
    </style>

    <!-- Notification bar event text -->
    <style name="NotificationText">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:ellipsize">end</item>
        <item name="android:fadingEdge">horizontal</item>
        <item name="android:singleLine">true</item>
        <item name="android:textColor">#212121</item>
    </style>

    <!-- Bottom Action Bar TextViews -->
    <style name="BottomActionBarText">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:ellipsize">end</item>
        <item name="android:paddingLeft">5dp</item>
        <item name="android:paddingRight">16dp</item>
        <item name="android:gravity">top|left|center</item>
        <item name="android:singleLine">true</item>
        <item name="android:textColor">@color/bottom_action_bar_text_color</item>
    </style>

    <style name="BottomActionBarLineOne" parent="@style/BottomActionBarText">
        <item name="android:textStyle">bold</item>
        <item name="android:textSize">@dimen/text_size_small</item>
    </style>

    <style name="BottomActionBarLineTwo" parent="@style/BottomActionBarText">
        <item name="android:textSize">@dimen/text_size_extra_micro</item>
    </style>

    <!-- Bottom Action Bar Image Buttons -->
    <style name="BottomActionBarItem">
        <item name="android:layout_weight">1</item>
        <item name="android:layout_width">0dp</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:gravity">center|right</item>
        <item name="android:paddingLeft">@dimen/bottom_action_bar_item_padding_left</item>
        <item name="android:paddingRight">@dimen/bottom_action_bar_item_padding_right</item>
        <item name="android:scaleType">centerInside</item>
    </style>

    <style name="HeaderTabTextStyle" parent="android:style/Widget.Material.ActionBar.TabText">
        <item name="android:textColor">@color/tab_text_color</item>
        <item name="android:textSize">@dimen/tab_text_size</item>
    </style>
</resources>
