<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<resources>

    <!--
        Base application theme. This could be overridden by GeckoBaseTheme
        in other res/values-XXX/themes.xml.
    -->
    <style name="GeckoBase" parent="@android:style/Theme.Light">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>
    </style>

    <style name="GeckoDialogBase" parent="@android:style/Theme.Dialog">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowContentOverlay">@null</item>
    </style>

    <style name="GeckoTitleDialogBase" parent="@android:style/Theme.Dialog" />

    <style name="GeckoPreferencesBase" parent="GeckoBase">
        <item name="android:windowNoTitle">false</item>
    </style>

    <!--
        Application Theme. All customizations that are not specific
        to a particular API level can go here.
    -->
    <style name="Gecko" parent="GeckoBase">
        <!-- Default colors -->
        <item name="android:textColorPrimary">@color/primary_text</item>
        <item name="android:textColorSecondary">@color/secondary_text</item>
        <item name="android:textColorTertiary">@color/tertiary_text</item>

        <!-- Default inverse colors -->
        <item name="android:textColorPrimaryInverse">@color/primary_text</item>
        <item name="android:textColorSecondaryInverse">@color/secondary_text</item>
        <item name="android:textColorTertiaryInverse">@color/tertiary_text</item>

        <!-- Disabled colors -->
        <item name="android:textColorPrimaryDisableOnly">@color/text_color_primary_disable_only</item>

        <!-- Hint colors -->
        <item name="android:textColorHint">@color/text_color_hint</item>
        <item name="android:textColorHintInverse">@color/text_color_hint_inverse</item>

        <!-- Highlight colors -->
        <item name="android:textColorHighlight">@color/fennec_ui_orange</item>
        <item name="android:textColorHighlightInverse">@color/text_color_highlight_inverse</item>

        <!-- Link colors -->
        <item name="android:textColorLink">@color/text_color_link</item>

        <!-- TextAppearances -->
        <item name="android:textAppearance">@style/TextAppearance</item>
        <item name="android:textAppearanceInverse">@style/TextAppearance.Inverse</item>
        <item name="android:textAppearanceLarge">@style/TextAppearance.Large</item>
        <item name="android:textAppearanceMedium">@style/TextAppearance.Medium</item>
        <item name="android:textAppearanceSmall">@style/TextAppearance.Small</item>
        <item name="android:textAppearanceLargeInverse">@style/TextAppearance.Large.Inverse</item>
        <item name="android:textAppearanceMediumInverse">@style/TextAppearance.Medium.Inverse</item>
        <item name="android:textAppearanceSmallInverse">@style/TextAppearance.Small.Inverse</item>
    </style>

    <style name="Gecko.Dialog" parent="GeckoDialogBase"/>

    <style name="Gecko.TitleDialog" parent="GeckoTitleDialogBase"/>

    <!--
        Activity based themes, dependent on API level. This theme is replaced
        by GeckoAppBase from res/values-vXX/themes.xml on newer devices.
    -->
    <style name="GeckoAppBase" parent="Gecko">
        <item name="android:buttonStyle">@style/Widget.Button</item>
        <item name="android:dropDownItemStyle">@style/Widget.DropDownItem</item>
        <item name="android:editTextStyle">@style/Widget.EditText</item>
        <item name="android:textViewStyle">@style/Widget.TextView</item>
        <item name="menuItemDefaultStyle">@style/Widget.MenuItemDefault</item>
    </style>

    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
    <style name="Gecko.App" parent="GeckoAppBase">
        <item name="android:gridViewStyle">@style/Widget.GridView</item>
        <item name="android:spinnerStyle">@style/Widget.Spinner</item>
        <item name="android:windowBackground">@android:color/white</item>
        <item name="bookmarksListViewStyle">@style/Widget.BookmarksListView</item>
        <item name="floatingHintEditTextStyle">@style/FloatingHintEditText</item>
        <item name="tabGridLayoutViewStyle">@style/Widget.TabsGridLayout</item>
        <item name="geckoMenuListViewStyle">@style/Widget.GeckoMenuListView</item>
        <item name="homeListViewStyle">@style/Widget.HomeListView</item>
        <item name="menuItemActionBarStyle">@style/Widget.MenuItemActionBar</item>
        <item name="menuItemActionModeStyle">@style/GeckoActionBar.Button</item>
        <item name="menuItemShareActionButtonStyle">@style/Widget.MenuItemSecondaryActionBar</item>
        <item name="panelGridViewStyle">@style/Widget.PanelGridView</item>
        <item name="panelIconGridViewStyle">@style/Widget.PanelIconGridView</item>
        <item name="topSitesGridItemViewStyle">@style/Widget.TopSitesGridItemView</item>
        <item name="topSitesGridViewStyle">@style/Widget.TopSitesGridView</item>
        <item name="topSitesThumbnailViewStyle">@style/Widget.TopSitesThumbnailView</item>
    </style>

    <style name="Gecko.Preferences" parent="GeckoPreferencesBase">
        <item name="floatingHintEditTextStyle">@style/FloatingHintEditText</item>
    </style>

    <!-- Make an activity appear like an overlay. -->
    <style name="OverlayActivity" parent="Gecko">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:backgroundDimEnabled">true</item>

        <!-- Set the app's title bar color in the recent app switcher.

             Note: We'd prefer not to show up in the recent app switcher (bug 1137928). -->
        <item name="android:colorPrimary">@color/text_and_tabs_tray_grey</item>
        <!-- We display the overlay on top of other Activities so show their status bar. -->
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>

</resources>
