<!--
  ~ Copyright (c) 2023 to present Androidacy and contributors. Names, logos, icons, and the Androidacy name are all trademarks of Androidacy and may not be used without license. See LICENSE for more information.
  -->

<resources>

    <style name="Theme.MagiskModuleManager.Monet.Light" parent="Theme.Material3.DynamicColors.Light">
        <item name="android:statusBarColor">@color/status_bar_color_light</item>
        <item name="colorBackgroundFloating">@color/system_accent1_50</item>
        <item name="android:windowBackground">@color/system_neutral1_10</item>
        <item name="chipStyle">@style/Widget.Material3.Chip.Assist.Elevated</item>
        <!-- fix bottom navigation bar color -->
        <item name="android:navigationBarColor">@color/system_accent2_100</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:actionBarStyle">@style/Theme.Design.NoActionBar</item>
        <item name="cornerRadius">@dimen/card_corner_radius</item>
        <item name="alertDialogTheme">@style/Theme.MagiskModuleManager.AlertDialog</item>
        <!-- md3 theme for text input -->
        <item name="editTextStyle">@style/Widget.Material3.TextInputEditText.OutlinedBox</item>
        <item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>

    </style>

    <style name="Theme.MagiskModuleManager.Monet.Dark" parent="Theme.Material3.DynamicColors.Dark">
        <item name="android:statusBarColor">@color/status_bar_color</item>
        <item name="colorBackgroundFloating">@color/system_neutral1_700</item>
        <item name="android:windowBackground">@color/system_neutral1_900</item>
        <item name="chipStyle">@style/Widget.Material3.Chip.Assist.Elevated</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:actionBarStyle">@style/Theme.Design.NoActionBar</item>
        <item name="cornerRadius">@dimen/card_corner_radius</item>
        <item name="alertDialogTheme">@style/Theme.MagiskModuleManager.AlertDialog</item>
        <!-- md3 theme for text input -->
        <item name="editTextStyle">@style/Widget.Material3.TextInputEditText.OutlinedBox</item>
        <item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>
    </style>

    <!-- Black monet theme, which is just dark monet theme with black background -->
    <style name="Theme.MagiskModuleManager.Monet.Black" parent="Theme.MagiskModuleManager.Monet.Dark">
        <item name="colorBackgroundFloating">@color/system_neutral1_900</item>
        <item name="boxBackgroundColor">@color/black</item>
        <item name="android:windowBackground">@color/black</item>
        <item name="backgroundColor">@color/black</item>
        <item name="colorSurface">@color/black</item>
        <!-- Darker variants of the monet colors -->
        <item name="colorPrimary">@color/system_accent2_300</item>
        <item name="colorPrimaryVariant">@color/system_accent2_700</item>
        <item name="colorSecondary">@color/system_accent2_400</item>
        <item name="colorSecondaryVariant">@color/system_accent2_600</item>
        <!-- Override chip style -->
        <item name="chipBackgroundColor">@color/system_accent2_700</item>
        <item name="chipSurfaceColor">@color/system_accent2_700</item>
        <!-- chips should be dark, not black -->
        <item name="chipStyle">@style/Widget.Material3.Chip.Assist.Elevated</item>
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:actionBarStyle">@style/Theme.Design.NoActionBar</item>
        <item name="cornerRadius">@dimen/card_corner_radius</item>
        <item name="alertDialogTheme">@style/Theme.MagiskModuleManager.AlertDialog</item>
        <!-- md3 theme for text input -->
        <item name="editTextStyle">@style/Widget.Material3.TextInputEditText.OutlinedBox</item>
        <item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>
    </style>

    <!-- I have no idea why this is needed, but it is -->
    <style name="Theme.MagiskModuleManager.NoActionBar" parent="Theme.MagiskModuleManager.Monet">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>


    <!-- Base application theme. -->
    <style name="Theme.MagiskModuleManager.Monet" parent="Theme.MagiskModuleManager.Monet.Light" />
</resources>