<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2017 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="CellBroadcastAlertTheme" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"/>
    <style name="CellBroadcastOptOutTheme" parent="@android:style/Theme.DeviceDefault.Light.NoActionBar.TranslucentDecor">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>

    <style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.v14.Material">
        <item name="switchPreferenceStyle">@style/SettingsSwitchPreference</item>
        <item name="preferenceCategoryStyle">@style/SettingsPreferenceCategory</item>
        <item name="preferenceStyle">@style/SettingsPreference</item>
        <item name="dialogPreferenceStyle">@style/SettingsDialogPreference</item>
    </style>

    <!-- have a separate theme for R to guarantee the new
    CollapsingToolbarBaseActivity does not break R devices-->
    <style name="CellBroadcastSettingsTheme" parent="@android:style/Theme.DeviceDefault.Settings" >
        <item name="preferenceTheme">@style/PreferenceTheme</item>
    </style>

    <style name="CellBroadcastListActivityTheme" parent="@android:style/Theme.DeviceDefault.Settings">
        <item name="android:windowActionModeOverlay">true</item>
        <item name="android:actionModeBackground">?android:attr/colorBackground</item>
    </style>

    <style name="CellBroadcastListActivityActionModeTheme">
        <item name="android:windowActionModeOverlay">true</item>
        <item name="android:actionModeBackground">?android:attr/colorBackground</item>
    </style>

    <style name="CellBroadcastSettingsRuntimeTheme">
        <item name="isCellBroadcastSettingsRuntimeTheme">true</item>
        <item name="switchStyle">@style/SwitchCompat.SettingsLib</item>
        <item name="alertDialogTheme">@style/Theme.AlertDialog.SettingsLib</item>
    </style>
</resources>
