<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- inherit from the material theme -->
    <style name="DolphinBase" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Main theme colors -->
        <!--   your app 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>

        <!--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.NoActionBar">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
    </style>

    <!-- Inherit from the Base Dolphin Theme-->
    <style name="DolphinWii" parent="DolphinBase">
        <!--   theme UI controls like checkboxes and text fields -->
        <item name="colorAccent">@color/dolphin_accent_wii</item>
    </style>

    <style name="DolphinGamecube" parent="DolphinBase">
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>
    </style>

    <style name="DolphinWiiware" parent="DolphinBase">
        <item name="colorAccent">@color/dolphin_accent_wiiware</item>
    </style>

    <!-- Inherit from the Base Dolphin Settings Theme-->
    <style name="DolphinSettingsWii" parent="DolphinSettingsBase">
        <item name="colorAccent">@color/dolphin_accent_wii</item>
    </style>

    <style name="DolphinSettingsGamecube" parent="DolphinSettingsBase">
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>
    </style>

    <style name="DolphinSettingsWiiware" parent="DolphinSettingsBase">
        <!--   theme UI controls like checkboxes and text fields -->
        <item name="colorAccent">@color/dolphin_accent_wiiware</item>
    </style>

    <!-- Themes for Dialogs -->
    <style name="DolphinDialogBase" parent="Theme.AppCompat.Light.Dialog">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</item>
    </style>

    <!-- Inherit from the Base Dolphin Dialog Theme-->
    <style name="DolphinDialogWii" parent="DolphinDialogBase">
        <item name="colorAccent">@color/dolphin_accent_wii</item>
    </style>

    <style name="DolphinDialogGamecube" parent="DolphinDialogBase">
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>
    </style>

    <style name="DolphinDialogWiiware" parent="DolphinDialogBase">
        <item name="colorAccent">@color/dolphin_accent_wiiware</item>
    </style>

    <style name="DolphinEmulationBase" parent="Theme.AppCompat">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</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>

    <!-- Inherit from the Base Dolphin Emulation Theme-->
    <style name="DolphinEmulationWii" parent="DolphinEmulationBase">
        <item name="colorAccent">@color/dolphin_accent_wii</item>
    </style>

    <style name="DolphinEmulationGamecube" parent="DolphinEmulationBase">
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>
    </style>

    <style name="DolphinEmulationWiiware" parent="DolphinEmulationBase">
        <item name="colorAccent">@color/dolphin_accent_wiiware</item>
    </style>

    <style name="DolphinEmulationTvBase" parent="Theme.AppCompat.NoActionBar">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</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>

    <!-- Inherit from the Base Dolphin Emulation Theme-->
    <style name="DolphinEmulationTvWii" parent="DolphinEmulationTvBase">
        <item name="colorAccent">@color/dolphin_accent_wii</item>
    </style>

    <style name="DolphinEmulationTvGamecube" parent="DolphinEmulationTvBase">
        <item name="colorAccent">@color/dolphin_accent_gamecube</item>
    </style>

    <style name="DolphinEmulationTvWiiware" parent="DolphinEmulationTvBase">
        <item name="colorAccent">@color/dolphin_accent_wiiware</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">
        <item name="colorPrimary">@color/dolphin_blue</item>
        <item name="colorPrimaryDark">@color/dolphin_blue_dark</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="DolphinTvGamecube" parent="DolphinTvBase">
        <item name="colorAccent">@color/dolphin_accent_gamecube</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>

</resources>