<resources>
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:dialogTheme">@style/CustomDialog</item>
        <item name="android:colorButtonNormal">@color/white</item>
        <item name="android:fontFamily">@font/opensans</item>
        <!-- enable window content transitions -->
        <item name="android:windowContentTransitions">true</item>
    </style>

    <style name="dialog_theme_full" parent="android:Theme" >
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">false</item>
    </style>

    <style name="ActivityDialog" parent="Theme.AppCompat.Light.NoActionBar">
        <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:backgroundDimEnabled">true</item>
    </style>

    <style name="AppTheme.NoActionBar" parent="AppTheme">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark" />
    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

    <style name="CustomDialog" parent="@style/Theme.AppCompat.Light.Dialog">
        <item name="android:windowNoTitle">true</item>
    </style>

    <!-- TODO use pendingTransition instead -->
    <style name="SendTransactionTheme" parent="Theme.AppCompat.Light.Dialog">
        <item name="android:windowAnimationStyle">@style/SendTransactionAnimation.Window</item>
    </style>
    <style name="SendTransactionAnimation.Window" parent="@android:style/Animation.Activity">
        <item name="android:windowEnterAnimation">@anim/send_transaction_in</item>
        <item name="android:windowExitAnimation">@anim/send_transaction_out</item>
    </style>

    <style name="ReceiveTransactionTheme" parent="Theme.AppCompat.Light.Dialog">
        <item name="android:windowAnimationStyle">@style/ReceiveTransactionAnimation.Window</item>
    </style>
    <style name="ReceiveTransactionAnimation.Window" parent="@android:style/Animation.Activity">
        <item name="android:windowEnterAnimation">@anim/receive_transaction_in</item>
        <item name="android:windowExitAnimation">@anim/receive_transaction_out</item>
    </style>

    <style name="AccountsAnimation.Window" parent="@android:style/Animation.Activity">
        <item name="android:windowEnterAnimation">@anim/accounts_in</item>
        <item name="android:windowExitAnimation">@anim/accounts_out</item>
    </style>

    <!-- TODO Remove this style and use the other button styles -->
    <style name="Widget.Button" parent="android:Widget.Button">
        <item name="android:paddingTop">8dp</item>
        <item name="android:paddingBottom">8dp</item>
        <item name="android:paddingStart">16dp</item>
        <item name="android:paddingEnd">16dp</item>
        <item name="android:minHeight">16dp</item>
        <item name="android:textAllCaps">true</item>
    </style>

    <style name="BaseButton" parent="Theme.AppCompat">
        <item name="android:textColor">@android:color/white</item>
        <item name="colorButtonNormal">@color/gray</item>
        <item name="android:buttonStyle">@style/Widget.AppCompat.Button.Colored</item>
    </style>

    <style name="BlueButton" parent="BaseButton">
        <item name="colorAccent">@color/colorPrimary</item>
        <item name="colorControlHighlight">@color/colorPrimaryDark</item>
    </style>

    <style name="RedButton" parent="BaseButton">
        <item name="colorAccent">@color/red</item>
        <item name="colorControlHighlight">@color/redColor</item>
    </style>

    <!-- Text styles -->
    <style name="TextAppearance.Body1" parent="Base.TextAppearance.AppCompat.Body1" >
        <item name="android:textSize">16sp</item>
    </style>
    <style name="TextAppearance.Body2" parent="Base.TextAppearance.AppCompat.Body2" />
</resources>
