<resources xmlns:tools="http://schemas.android.com/tools">

    <style name="Theme.MagiskModuleManager.Light" parent="Theme.Material3.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">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.Material3.Chip.Choice.Light</item>
        <!-- fonts -->
        <item name="android:fontFamily">@font/inter</item>
        <item name="font">@font/inter</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <style name="Widget.Material3.Chip.Choice.Light" parent="Widget.Material3.Chip.Assist">
        <item name="chipBackgroundColor">@color/white</item>
        <item name="chipStrokeWidth">0dp</item>
        <item name="chipIconTint">?attr/colorControlNormal</item>
    </style>

    <style name="Theme.MagiskModuleManager.Transparent.Light" parent="Theme.Material3.Light">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:backgroundDimEnabled">true</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowAnimationStyle">@android:style/Animation</item>
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:statusBarColor">@color/status_bar_color</item>
        <item name="android:windowShowWallpaper">true</item>
        <!-- Fix text color in transparent theme -->
        <item name="android:textColor">@color/white</item>
        <item name="titleTextColor">@color/white</item>
        <!-- Fix action bar padding in transparent theme -->
        <item name="android:actionBarStyle">@style/Widget.Material3.ActionBar.Solid</item>
        <!-- Action bar -->
        <item name="actionBarStyle">@style/Widget.Material3.ActionBar.Solid</item>
        <item name="chipStyle">@style/Widget.Material3.Chip.Choice.Light</item>
        <!-- fonts -->
        <item name="android:fontFamily">@font/inter</item>
        <item name="font">@font/inter</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <style name="Theme.MagiskModuleManager.Dark" parent="Theme.Material3.Dark">
        <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">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>
        <!-- fonts -->
        <item name="android:fontFamily">@font/inter</item>
        <item name="font">@font/inter</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</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="colorPrimary">@color/orange_500</item>
        <item name="colorPrimaryVariant">@color/orange_700</item>
        <item name="colorSecondary">@color/orange_500</item>
        <item name="colorSecondaryVariant">@color/orange_700</item>
        <!-- Fix some unthemed dialogs -->
        <item name="android:colorAccent">@color/orange_200</item>
        <item name="android:colorBackground">@color/black</item>
        <item name="android:colorForeground">@color/white</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <!-- chips should be dark, not black -->
        <item name="chipStyle">@style/Widget.Material.Chip.Choice.Dark</item>
        <!-- fonts -->
        <item name="android:fontFamily">@font/inter</item>
        <item name="font">@font/inter</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</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: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">false</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <!-- fonts -->
        <item name="android:fontFamily">@font/inter</item>
        <item name="font">@font/inter</item>
    </style>

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

    <style name="Theme.MagiskModuleManager.NoActionBar" parent="Theme.MagiskModuleManager" >
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <style name="Theme.MagiskModuleManager.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

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