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

    <!-- Inherit from the material theme -->
    <style name="CitraBase" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Main theme colors -->
        <!-- Branding color for the app bar -->
        <item name="colorPrimary">@color/citra_orange</item>
        <!-- Darker variant for the status bar and contextual app bars -->
        <item name="colorPrimaryDark">@color/citra_orange_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="CitraSettingsBase" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/citra_orange</item>
        <item name="colorPrimaryDark">@color/citra_orange_dark</item>
    </style>

    <!-- Themes for Dialogs -->

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

    <style name="CitraEmulationBase" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/citra_orange</item>
        <item name="colorPrimaryDark">@color/citra_orange_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>

    <style name="CitraEmulationTvBase" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">@color/citra_orange</item>
        <item name="colorPrimaryDark">@color/citra_orange_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>

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

    <!-- Android TV Themes -->
    <style name="CitraTvBase" parent="Theme.Leanback.Browse">
        <item name="colorPrimary">@color/citra_orange</item>
        <item name="colorPrimaryDark">@color/citra_orange_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="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/lb_control_button_text</item>
    </style>
    <style name="FilePickerAlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert">
        <item name="colorPrimary">@color/citra_orange</item>
        <item name="colorPrimaryDark">@color/citra_orange_dark</item>
        <item name="colorAccent">@android:color/holo_purple</item>
    </style>

</resources>
