<resources>
    <style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar">
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/accent</item>
        <item name="colorOnPrimary">#ffffff</item>
        <item name="colorSecondary">@color/accent</item>
        <item name="colorOnSecondary">#000000</item>
        <item name="android:statusBarColor">?attr/colorPrimarySurface</item>
        <item name="android:navigationBarColor">?attr/colorPrimarySurface</item>
        <item name="materialAlertDialogTheme">@style/AppTheme.AlertDialog</item>
        <item name="alertDialogTheme">@style/AppTheme.AlertDialog.NonMaterial</item>

        <item name="android:windowActivityTransitions">true</item>
    </style>

    <style name="AppTheme.Toolbar" parent="AppTheme">
        <item name="android:textColorSecondary">#fff</item>
    </style>

    <style name="AppTheme.FloatingActionButtonSpeedDial">
        <item name="tint">@color/floating_action_button_speed_dial_tint</item>
        <item name="android:backgroundTint">@color/floating_action_button_speed_dial_background</item>
        <item name="android:textColor">@color/floating_action_button_speed_dial_tint</item>
    </style>

    <style name="AppTheme.AlertDialog" parent="Theme.MaterialComponents.Dialog.Alert">
        <item name="android:textColorPrimary">@android:color/primary_text_dark</item>
        <item name="materialButtonStyle">@style/AppTheme.AlertDialog.Button</item>
    </style>

    <style name="AppTheme.AlertDialog.NonMaterial" parent="Theme.AppCompat.Dialog.Alert">
        <item name="android:textColorPrimary">@android:color/primary_text_dark</item>
        <item name="materialButtonStyle">@style/AppTheme.AlertDialog.Button</item>
        <item name="colorControlActivated">@color/accent</item>
    </style>

    <style name="AppTheme.AlertDialog.Button" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
        <item name="android:textColor">@color/accent</item>
    </style>

    <style name="MageTheme" parent="Theme.MaterialComponents.NoActionBar">
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/accent</item>
        <item name="colorOnPrimary">#ffffff</item>
        <item name="colorSecondary">@color/accent</item>
        <item name="colorOnSecondary">#000000</item>
        <item name="colorPrimarySurface">@color/primary</item>
        <item name="android:windowBackground">@color/primary</item>
        <item name="android:statusBarColor">?attr/colorPrimarySurface</item>
        <item name="android:navigationBarColor">?attr/colorPrimarySurface</item>
        <item name="colorControlNormal">@color/accent</item>
        <item name="colorButtonNormal">@color/accent</item>
        <item name="android:textAppearanceButton">@style/MageTheme.TextAppearanceButton</item>
        <item name="android:textColor">?attr/colorOnPrimary</item>

        <item name="textAppearanceHeadline1">@style/MageTheme.TextAppearanceHeadline1</item>

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

        <item name="textInputStyle">@style/MageTheme.TextInputStyle</item>

        <item name="android:windowActivityTransitions">true</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>

        -<item name="materialAlertDialogTheme">@style/AppTheme.AlertDialog</item>
    </style>

    <style name="MageTheme.Translucent" parent="MageTheme">
        <item name="android:windowIsTranslucent">true</item>
    </style>

    <style name="MageTheme.TextAppearanceHeadline1" parent="TextAppearance.MaterialComponents.Headline1">
        <item name="fontFamily">sans-serif-condensed-light</item>
    </style>

    <style name="MageTheme.TextInputStyle" parent="Widget.MaterialComponents.TextInputLayout.FilledBox">
        <item name="hintTextColor">?attr/colorAccent</item>
        <item name="boxCornerRadiusTopStart">16dp</item>
        <item name="boxCornerRadiusTopEnd">16dp</item>
        <item name="boxStrokeColor">@color/mage_text_input_box_stroke</item>
        <item name="boxBackgroundColor">?attr/colorPrimaryDark</item>
    </style>

    <style name="MageTheme.TextInputStyle.ExposedDropdownMenu" parent="Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu">
        <item name="hintTextColor">?attr/colorAccent</item>
        <item name="boxCornerRadiusTopStart">16dp</item>
        <item name="boxCornerRadiusTopEnd">16dp</item>
        <item name="boxStrokeColor">@color/mage_text_input_box_stroke</item>
        <item name="boxBackgroundColor">?attr/colorPrimaryDark</item>
    </style>

    <style name="MageTheme.Button" parent="Widget.MaterialComponents.Button">
        <item name="tint">?attr/colorOnSecondary</item>
        <item name="android:backgroundTint">?attr/colorSecondary</item>
        <item name="android:textColor">?attr/colorOnSecondary</item>
        <item name="iconTint">?attr/colorOnSecondary</item>
    </style>

    <style name="MageTheme.TextAppearanceButton" parent="TextAppearance.MaterialComponents.Button">
        <item name="android:textColor">?attr/colorOnSecondary</item>
    </style>

    <style name="StreamTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/accent</item>
        <item name="materialAlertDialogTheme">@style/AppTheme.AlertDialog</item>
        <item name="android:windowBackground">@color/stream_background</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
    </style>
</resources>
