<resources>
    <!-- application themes -->
    <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="popupMenuStyle">@style/Widget.App.PopupMenu</item>
        <item name="searchViewStyle">@style/SearchViewStyle</item>
    </style>

    <style name="AppTheme.Light" parent="AppTheme">
        <item name="themePrimary">@color/themePrimaryLight</item>
        <item name="themeSecondary">@color/themeSecondaryLight</item>
        <item name="textPrimary">@color/textPrimaryLight</item>
        <item name="textSecondary">@color/textSecondaryLight</item>
        <item name="android:textColor">@color/textPrimaryLight</item>
        <item name="android:textColorPrimary">@color/textPrimaryLight</item>
        <item name="android:textColorHint">@color/textSecondaryLight</item>
        <item name="shapeTextBackground">@color/textBackgroundLight</item>
        <item name="iconColor">@color/iconColorLight</item>
        <item name="buttonBackground">@color/buttonBackgroundLight</item>
    </style>

    <style name="AppTheme.Dark" parent="AppTheme">
        <item name="themePrimary">@color/themePrimaryDark</item>
        <item name="themeSecondary">@color/themeSecondaryDark</item>
        <item name="textPrimary">@color/textPrimaryDark</item>
        <item name="textSecondary">@color/textSecondaryDark</item>
        <item name="android:textColor">@color/textPrimaryDark</item>
        <item name="android:textColorPrimary">@color/textPrimaryDark</item>
        <item name="android:textColorHint">@color/textSecondaryDark</item>
        <item name="shapeTextBackground">@color/textBackgroundDark</item>
        <item name="iconColor">@color/iconColorDark</item>
        <item name="buttonBackground">@color/buttonBackgroundDark</item>

        <item name="materialAlertDialogTheme">@style/ThemeOverlay.App.MaterialAlertDialog.Dark</item>
        <!-- change on click indicator color for manually set components -->
        <item name="colorControlHighlight">@color/controlHighlightDark</item>
    </style>

    <!-- dialog themes -->
    <style name="ThemeOverlay.App.MaterialAlertDialog.Dark" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorSurface">@color/themeSecondaryDark</item>
        <item name="colorOnSurface">@color/textPrimaryDark</item>
        <item name="android:colorControlNormal">@color/textSecondaryDark</item> <!-- Radio button unchecked-->
        <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialog.App.Title.Text</item>
    </style>

    <style name="MaterialAlertDialog.App.Title.Text" parent="MaterialAlertDialog.MaterialComponents.Title.Text">
        <item name="android:textColor">?textPrimary</item>
    </style>

    <!-- search view theme -->
    <style name="SearchViewStyle" parent="Widget.AppCompat.SearchView.ActionBar">
        <item name="iconifiedByDefault">false</item>
        <item name="searchIcon">@drawable/ic_baseline_search_24</item>
        <item name="queryHint">@string/search_hint</item>
    </style>

    <!-- player theme -->
    <style name="PlayerTheme" parent="AppTheme">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
    </style>

    <!-- splash theme -->
    <style name="Theme.App.Starting" parent="Theme.SplashScreen">
        <!-- Set the splash screen background, animated icon, and animation duration. -->
        <item name="windowSplashScreenBackground">@android:color/black</item>

        <!-- Use windowSplashScreenAnimatedIcon to add either a drawable or an -->
        <!-- animated drawable. One of these is required. -->
        <item name="windowSplashScreenAnimatedIcon">@mipmap/ic_splash_round</item>
        <item name="windowSplashScreenAnimationDuration">200</item>

        <!-- Set the theme of the Activity that directly follows your splash screen. -->
        <item name="postSplashScreenTheme">@style/AppTheme.Dark</item>  # Required.
    </style>

    <!-- shapes -->
    <style name="ShapeAppearance.Teapod.RoundedPoster" parent="ShapeAppearance.MaterialComponents.LargeComponent">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSize">5dp</item>
    </style>

    <!-- popup menus -->
    <style name="Widget.App.PopupMenu" parent="Widget.MaterialComponents.PopupMenu">
        <item name="android:popupBackground">?themeSecondary</item>
    </style>

    <!-- fullscreen dialog fragments -->
    <style name="FullScreenDialogStyle" parent="AppTheme">
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowIsFloating">false</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
    </style>

</resources>