<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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>
    <attr name="fingerprint_layout_theme" format="reference" />
    <attr name="ic_menu_moreoverflow" format="reference" />
    <attr name="ic_wps" format="reference" />
    <attr name="setup_divider_color" format="reference" />
    <attr name="side_margin" format="reference|dimension" />
    <attr name="wifi_signal_color" format="reference" />

    <style name="GlifTheme" parent="SuwThemeGlif">
        <!-- For all Alert Dialogs -->
        <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
        <item name="android:windowBackground">?android:attr/colorBackground</item>
        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
        <item name="ic_wps">@drawable/ic_wps_dark</item>
        <item name="setup_divider_color">@color/setup_divider_color_dark</item>
        <item name="side_margin">0dip</item>
        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item>
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="wifi_friction">@drawable/wifi_friction</item>
        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>

        <!-- LockPatternView colors -->
        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
    </style>

    <style name="GlifTheme.Light" parent="SuwThemeGlif.Light">
        <!-- For all Alert Dialogs -->
        <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
        <item name="android:windowBackground">?android:attr/colorBackground</item>
        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
        <item name="ic_wps">@drawable/ic_wps_light</item>
        <item name="setup_divider_color">@color/setup_divider_color_light</item>
        <item name="side_margin">0dip</item>
        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="wifi_friction">@drawable/wifi_friction</item>
        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>

        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
    </style>

    <style name="GlifV2Theme" parent="SuwThemeGlifV2">
        <!-- For all Alert Dialogs -->
        <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
        <item name="android:windowBackground">?android:attr/colorBackground</item>
        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
        <item name="ic_wps">@drawable/ic_wps_dark</item>
        <item name="setup_divider_color">@color/setup_divider_color_dark</item>
        <item name="side_margin">0dip</item>
        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_dark</item>
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="wifi_friction">@drawable/wifi_friction</item>
        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>

        <!-- LockPatternView colors -->
        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
    </style>

    <style name="GlifV2Theme.Light" parent="SuwThemeGlifV2.Light">
        <!-- For all Alert Dialogs -->
        <item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
        <item name="android:windowBackground">?android:attr/colorBackground</item>
        <item name="*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_material</item>
        <item name="ic_wps">@drawable/ic_wps_light</item>
        <item name="setup_divider_color">@color/setup_divider_color_light</item>
        <item name="side_margin">0dip</item>
        <item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="wifi_friction">@drawable/wifi_friction</item>
        <item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
        <item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>

        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
    </style>

    <style name="SetupWizardTheme.Transparent" parent="GlifTheme">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="SetupWizardTheme.Light.Transparent" parent="GlifTheme.Light">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowAnimationStyle">@null</item>
    </style>

    <style name="SuwSuggestionThemeGlif.Light" parent="SuwThemeGlif.Light">
        <item name="android:windowAnimationStyle">@android:style/Animation.Activity</item>
    </style>

    <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.SettingsBase">
        <item name="preferenceFragmentStyle">@style/SettingsPreferenceFragmentStyle</item>
        <item name="apnPreferenceStyle">@style/ApnPreference</item>
        <item name="seekBarPreferenceStyle">@style/SettingsSeekBarPreference</item>
    </style>

    <style name="PreferenceTheme.SetupWizard" parent="PreferenceTheme">
        <item name="preferenceFragmentStyle">@style/SetupWizardPreferenceFragmentStyle</item>
        <item name="preferenceStyle">@style/Preference.Material</item>
    </style>

    <style name="SetupWizardPreferenceFragmentStyle" parent="PreferenceFragment.Material">
        <item name="android:layout">@layout/setup_preference</item>
    </style>

    <!-- Accessibility portion of Setup Wizard -->
    <style name="SetupWizardAccessibilityTheme" parent="Theme.SettingsBase">
        <item name="android:windowLightStatusBar">false</item>
        <item name="android:colorPrimary">@color/material_grey_100</item>
        <item name="android:colorAccent">@color/material_blue_700</item>
        <item name="android:titleTextColor">@color/material_blue_700</item>
        <item name="preferenceTheme">@style/PreferenceTheme</item>
        <item name="switchBarTheme">@style/SetupWizardAccessibilitySwitchBarTheme</item>
    </style>

    <style name="SetupWizardAccessibilitySwitchBarTheme" parent="ThemeOverlay.SwitchBar.Settings">
        <item name="switchBarBackgroundColor">@color/material_grey_200</item>
        <item name="android:colorControlActivated">@color/material_blue_500</item>
        <item name="android:textColorPrimary">@android:color/black</item>
    </style>

    <!-- Theme with no local references, used by AccountPreferenceBase where we have to inflate
         layouts against a remote context using our local theme colors. Due to the implementation
         details of Theme, we can't reference any local resources and MUST instead use the values
         directly. So use #ff263238 instead of @color/theme_primary and so on. -->
    <style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" />

    <style name="Theme.Settings" parent="Theme.SettingsBase">
        <item name="preferenceTheme">@style/PreferenceTheme</item>
        <item name="android:listPreferredItemHeight">72dip</item>
        <item name="*android:preferenceHeaderPanelStyle">@style/PreferenceHeaderPanelSinglePane</item>
        <item name="*android:preferencePanelStyle">@style/PreferencePanelSinglePane</item>
        <item name="*android:preferenceListStyle">@style/PreferenceHeaderListSinglePane</item>
        <item name="*android:preferenceFragmentListStyle">@style/PreferenceFragmentListSinglePane</item>
        <item name="*android:preferenceFragmentPaddingSide">@dimen/settings_side_margin</item>

        <item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
        <item name="ic_menu_moreoverflow">@*android:drawable/ic_menu_moreoverflow_holo_dark</item>
        <item name="ic_wps">@drawable/ic_wps_light</item>
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="wifi_signal_color">?android:attr/colorAccent</item>
        <item name="wifi_friction">@drawable/wifi_friction</item>
        <item name="side_margin">@dimen/settings_side_margin</item>
        <item name="suwListItemIconColor">?android:attr/colorAccent</item>

        <!-- Redefine the ActionBar style for contentInsetStart -->
        <item name="android:actionBarStyle">@style/Theme.ActionBar</item>

        <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.Settings</item>

        <item name="preferenceBackgroundColor">@drawable/preference_background</item>

        <!-- For all Alert Dialogs -->
        <item name="android:alertDialogTheme">@style/Theme.AlertDialog</item>

        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Setup</item>
    </style>

    <style name="Theme.SubSettings" parent="Theme.Settings">
        <!-- Redefine the ActionBar style for contentInsetStart -->
        <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item>

        <item name="switchBarTheme">@style/ThemeOverlay.SwitchBar.SubSettings</item>
    </style>

    <!-- Variant of the settings theme with no action bar. -->
    <style name="Theme.Settings.NoActionBar">
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <style name="Theme.ProvisioningActivity" parent="@android:style/Theme.Translucent.NoTitleBar">
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android: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.ActionBar" parent="@android:style/Widget.Material.ActionBar.Solid">
        <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item>
    </style>

    <style name="Theme.ActionBar.SubSettings" parent="Theme.ActionBar">
        <item name="android:contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item>
    </style>

    <style name="ThemeOverlay.SwitchBar.Settings" parent="@android:style/ThemeOverlay.Material.ActionBar">
        <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
        <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
        <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item>
    </style>

    <style name="ThemeOverlay.SwitchBar.SubSettings" parent="@android:style/ThemeOverlay.Material.ActionBar">
        <item name="switchBarMarginStart">@dimen/switchbar_subsettings_margin_start</item>
        <item name="switchBarMarginEnd">@dimen/switchbar_subsettings_margin_end</item>
        <item name="switchBarBackgroundColor">?android:attr/colorSecondary</item>
    </style>

    <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar">
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:windowDrawsSystemBarBackgrounds">false</item>
        <item name="android:background">@android:color/black</item>

        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Unlock</item>
    </style>

    <style name="ThemeOverlay.AlertDialog" parent="@android:style/ThemeOverlay.Material.Dialog.Alert">
        <item name="android:windowSoftInputMode">adjustResize</item>
    </style>

    <style name="Theme.AlertDialog" parent="@*android:style/Theme.DeviceDefault.Settings.Dialog.Alert">
        <item name="android:windowSoftInputMode">adjustResize</item>

        <!-- Redefine the ActionBar style for contentInsetStart -->
        <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
    </style>

    <style name="Theme.NotificationStation" parent="@style/Theme.Settings">
        <!-- Redefine the ActionBar style for contentInsetStart -->
        <item name="android:actionBarStyle">@style/Theme.ActionBar.SubSettings</item>
        <item name="*android:actionBarSize">@dimen/actionbar_size</item>

        <item name="preferenceBackgroundColor">@android:color/transparent</item>
    </style>

    <style name="Theme.ConfirmDeviceCredentials" parent="Theme.SubSettings">
        <item name="confirmDeviceCredentialsSideMargin">@dimen/confirm_credentials_side_margin</item>
        <item name="confirmDeviceCredentialsTopMargin">@dimen/confirm_credentials_top_margin</item>
    </style>

    <style name="Theme.ConfirmDeviceCredentialsDark" parent="@android:style/Theme.DeviceDefault">
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">?android:attr/colorPrimary</item>

        <item name="confirmDeviceCredentialsSideMargin">32dp</item>
        <item name="confirmDeviceCredentialsTopMargin">32dp</item>

        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark</item>

        <item name="android:windowAnimationStyle">@style/ConfirmDeviceCredentialsAnimationStyle</item>
    </style>

    <style name="Theme.ConfirmDeviceCredentialsWork" parent="Theme.ConfirmDeviceCredentialsDark">
        <item name="*android:lockPatternStyle">@style/LockPatternStyle.Dark.Work</item>
        <item name="android:colorAccent">@*android:color/white</item>
    </style>

    <style name="Theme.FingerprintEnroll" parent="SuwThemeGlif.Light">
        <item name="android:textAppearanceListItemSmall">@android:style/TextAppearance.Material.Body1</item>

        <item name="suwDividerCondition">both</item>
        <item name="suwListItemIconColor">?android:attr/colorAccent</item>
    </style>

    <style name="FallbackHome" parent="@android:style/Theme.DeviceDefault.NoActionBar">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowShowWallpaper">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">#00000000</item>
        <item name="android:navigationBarColor">#00000000</item>
    </style>

    <style name="FallbackHome.SetupWizard" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
        <item name="android:windowBackground">@drawable/fallback_home_unprovisioned_background</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">#00000000</item>
        <item name="android:navigationBarColor">#00000000</item>
    </style>

    <style name="FallbackHomeProgressBar" parent="FallbackHome">
        <item name="android:colorControlActivated">?android:attr/textColorPrimary</item>
    </style>

    <style name="BluetoothPermission" parent="@android:style/Theme.Material.Light.Dialog.Alert">
        <item name="android:windowNoTitle">true</item>
    </style>

</resources>
