<resources xmlns:tools="http://schemas.android.com/tools">
    <style name="Theme.MagiskModuleManager.Light" parent="Theme.MaterialComponents.Light">
        <item name="android:isLightTheme"
            tools:targetApi="q">true</item>
        <item name="isLightTheme">true</item>
        <!-- Primary brand color. -->
        <item name="colorPrimary">@color/orange_200</item>
        <item name="colorPrimaryVariant">@color/white</item>
        <item name="colorOnPrimary">@color/white</item>
        <!-- Secondary brand color. -->
        <item name="colorSecondary">@color/orange_200</item>
        <item name="colorSecondaryVariant">@color/orange_200</item>
        <item name="colorOnSecondary">@color/white</item>
        <!-- Status bar color. -->
        <item name="android:statusBarColor">@color/status_bar_color</item>
        <item name="android:navigationBarColor">@color/transparent</item>
        <item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">true</item>
        <!-- Customize your theme here. -->
        <item name="android:windowActivityTransitions">true</item>
        <!-- <item name="android:activityOpenEnterAnimation">@*android:anim/slide_in_right</item>
        <item name="android:activityOpenExitAnimation">@*android:anim/slide_out_left</item>
        <item name="android:activityCloseEnterAnimation">@*android:anim/slide_in_left</item>
        <item name="android:activityCloseExitAnimation">@*android:anim/slide_out_right</item> -->
        <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
        <item name="android:windowExitAnimation">@android:anim/fade_out</item>
        <item name="android:dialogCornerRadius" tools:targetApi="p">@dimen/card_corner_radius</item>
        <item name="dialogCornerRadius">@dimen/card_corner_radius</item>
        <item name="colorBackgroundFloating">@color/light_colorBackgroundFloating</item>
        <item name="backgroundColor">@color/light_backgroundColor</item>
        <item name="chipStyle">@style/Widget.Material.Chip.Choice.Light</item>
    </style>

    <style name="Widget.Material.Chip.Choice.Light" parent="Widget.MaterialComponents.Chip.Action">
        <item name="chipBackgroundColor">@color/light_chipBackgroundColor</item>
        <item name="chipStrokeWidth">0dp</item>
        <item name="chipIconTint">@color/black</item>
    </style>

    <style name="Theme.MagiskModuleManager.Transparent.Light" parent="Theme.MagiskModuleManager.Light">
        <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:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowAnimationStyle">@android:style/Animation</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="Theme.MagiskModuleManager.Dark" parent="Theme.MaterialComponents">
        <item name="android:isLightTheme"
            tools:targetApi="q">false</item>
        <item name="isLightTheme">false</item>
        <!-- Primary brand color. -->
        <item name="colorPrimary">@color/orange_200</item>
        <item name="colorPrimaryVariant">@color/black</item>
        <item name="colorOnPrimary">@color/white</item>
        <!-- Secondary brand color. -->
        <item name="colorSecondary">@color/orange_200</item>
        <item name="colorSecondaryVariant">@color/orange_200</item>
        <item name="colorOnSecondary">@color/black</item>
        <!-- Status bar color. -->
        <item name="android:statusBarColor">@color/status_bar_color</item>
        <item name="android:navigationBarColor">@color/transparent</item>
        <item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
        <item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">false</item>
        <!-- Customize your theme here. -->
        <item name="android:windowActivityTransitions">true</item>
        <!-- <item name="android:activityOpenEnterAnimation">@*android:anim/slide_in_right</item>
        <item name="android:activityOpenExitAnimation">@*android:anim/slide_out_left</item>
        <item name="android:activityCloseEnterAnimation">@*android:anim/slide_in_left</item>
        <item name="android:activityCloseExitAnimation">@*android:anim/slide_out_right</item> -->
        <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
        <item name="android:windowExitAnimation">@android:anim/fade_out</item>
        <item name="android:dialogCornerRadius" tools:targetApi="p">@dimen/card_corner_radius</item>
        <item name="dialogCornerRadius">@dimen/card_corner_radius</item>
        <item name="colorBackgroundFloating">@color/dark_colorBackgroundFloating</item>
        <item name="backgroundColor">@color/dark_backgroundColor</item>
        <item name="chipStyle">@style/Widget.Material.Chip.Choice.Dark</item>
    </style>

    <!-- Black theme, which is just a dark theme with a black background -->
    <style name="Theme.MagiskModuleManager.Black" parent="Theme.MagiskModuleManager.Dark">
        <item name="colorBackgroundFloating">@color/black</item>
        <item name="android:windowBackground">@color/black</item>
        <item name="boxBackgroundColor">@color/black</item>
        <item name="cardBackgroundColor">@color/black</item>
        <item name="backgroundColor">@color/black</item>
        <item name="colorSurface">@color/black</item>
        <!-- Darker variants of the colors -->
        <item name="colorPrimaryVariant">@color/system_accent2_900</item>
        <item name="colorSecondaryVariant">@color/system_accent2_900</item>
    </style>

    <style name="Widget.Material.Chip.Choice.Dark" parent="Widget.MaterialComponents.Chip.Action">
        <item name="chipBackgroundColor">@color/dark_chipBackgroundColor</item>
        <item name="chipStrokeWidth">0dp</item>
        <item name="chipIconTint">@color/white</item>
    </style>

    <!-- Base application theme. -->
    <style name="Theme.MagiskModuleManager.Transparent.Dark" parent="Theme.MagiskModuleManager.Dark">
        <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:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowAnimationStyle">@android:style/Animation</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="Theme.MagiskModuleManager"
        parent="Theme.MagiskModuleManager.Light" />
</resources>