<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!-- Inherit from the material theme -->
    <style name="DolphinBase" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Main theme colors -->
        <!-- Branding color for the app bar -->
        <item name="colorPrimary">@color/dolphin_blue</item>
        <!-- Darker variant for the status bar and contextual app bars -->
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_purple</item>

        <!-- Enable window content transitions -->
        <item name="android:windowContentTransitions">true</item>
        <item name="android:windowAllowEnterTransitionOverlap">true</item>
        <item name="android:windowAllowReturnTransitionOverlap">true</item>

        <item name="android:colorControlHighlight">?attr/colorAccent</item>
    </style>

    <!-- Same as above, but use default action bar, and mandate margins. -->
    <style name="DolphinSettingsBase" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_purple</item>
    </style>

    <!-- Themes for Dialogs -->

    <!-- Inherit from the Base Dolphin Dialog Theme -->

    <style name="DolphinEmulationBase" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_purple</item>
        <item name="android:windowTranslucentNavigation">true</item>

        <item name="android:windowBackground">@android:color/black</item>

        <!-- Enable window content transitions -->
        <item name="android:windowContentTransitions">true</item>
        <item name="android:windowAllowEnterTransitionOverlap">true</item>
        <item name="android:windowAllowReturnTransitionOverlap">true</item>
    </style>

    <style name="DolphinEmulationTvBase" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_purple</item>
        <item name="android:windowTranslucentNavigation">true</item>

        <item name="android:windowBackground">@android:color/black</item>

        <!-- Enable window content transitions -->
        <item name="android:windowContentTransitions">true</item>
        <item name="android:windowAllowEnterTransitionOverlap">true</item>
        <item name="android:windowAllowReturnTransitionOverlap">true</item>
    </style>

    <!-- Hax to make Tablayout render icons -->
    <style name="MyCustomTextAppearance" parent="TextAppearance.Design.Tab">
        <item name="textAllCaps">false</item>
    </style>

    <!-- Android TV Themes -->
    <style name="DolphinTvBase" parent="Theme.Leanback.Browse">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_purple</item>

        <!-- Enable window content transitions -->
        <item name="android:windowContentTransitions">true</item>
        <item name="android:windowAllowEnterTransitionOverlap">true</item>
        <item name="android:windowAllowReturnTransitionOverlap">true</item>

        <!-- Use CustomTitleView as the leanback title view. -->
        <item name="browseTitleViewLayout">@layout/titleview</item>
    </style>

    <style name="InGameMenuOption" parent="Widget.AppCompat.Button.Borderless">
        <item name="android:textSize">16sp</item>
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:textColor">@android:color/white</item>
        <item name="android:textAllCaps">false</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">48dp</item>
        <item name="android:gravity">center_vertical|left</item>
        <item name="android:paddingLeft">32dp</item>
        <item name="android:paddingRight">32dp</item>
        <item name="android:layout_margin">0dp</item>
    </style>

    <style name="OverlayInGameMenuOption" parent="InGameMenuOption">
        <item name="android:textColor">@color/button_text_color</item>
    </style>

    <!-- You can also inherit from NNF_BaseTheme.Light -->
    <style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>

        <!--&lt;!&ndash; Setting a divider is entirely optional &ndash;&gt;-->
        <item name="nnf_list_item_divider">?android:attr/listDivider</item>

        <!-- Need to set this also to style create folder dialog -->
        <item name="alertDialogTheme">@style/FilePickerAlertDialogTheme</item>

        <!-- If you want to set a specific toolbar theme, do it here -->

        <item name="nnf_toolbarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
    </style>

    <style name="FilePickerAlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>
    </style>

</resources>
