<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">

	<!-- Base application theme. -->
	<style name="Base.Theme.Kotatsu" parent="Theme.Material3.DayNight.NoActionBar">

		<!-- Disallow 'Force dark theme' -->
		<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>

		<!-- Theme Colors -->
		<item name="colorPrimary">@color/kotatsu_primary</item>
		<item name="colorPrimaryContainer">@color/kotatsu_primaryContainer</item>
		<item name="colorOnPrimary">@color/kotatsu_onPrimary</item>
		<item name="colorOnPrimaryContainer">@color/kotatsu_onPrimaryContainer</item>
		<item name="colorPrimaryInverse">@color/kotatsu_inversePrimary</item>
		<item name="colorSecondary">@color/kotatsu_secondary</item>
		<item name="colorSecondaryContainer">@color/kotatsu_secondaryContainer</item>
		<item name="colorOnSecondary">@color/kotatsu_onSecondary</item>
		<item name="colorOnSecondaryContainer">@color/kotatsu_onSecondaryContainer</item>
		<item name="colorTertiary">@color/kotatsu_tertiary</item>
		<item name="colorTertiaryContainer">@color/kotatsu_tertiaryContainer</item>
		<item name="colorOnTertiary">@color/kotatsu_onTertiary</item>
		<item name="colorOnTertiaryContainer">@color/kotatsu_onTertiaryContainer</item>
		<item name="colorSurface">@color/kotatsu_surface</item>
		<item name="colorSurfaceDim">@color/kotatsu_surfaceDim</item>
		<item name="colorSurfaceBright">@color/kotatsu_surfaceBright</item>
		<item name="colorSurfaceContainerLowest">@color/kotatsu_surfaceContainerLowest</item>
		<item name="colorSurfaceContainerLow">@color/kotatsu_surfaceContainerLow</item>
		<item name="colorSurfaceContainer">@color/kotatsu_surfaceContainer</item>
		<item name="colorSurfaceContainerHigh">@color/kotatsu_surfaceContainerHigh</item>
		<item name="colorSurfaceContainerHighest">@color/kotatsu_surfaceContainerHighest</item>
		<item name="colorSurfaceVariant">@color/kotatsu_surfaceVariant</item>
		<item name="colorOnSurface">@color/kotatsu_onSurface</item>
		<item name="colorOnSurfaceVariant">@color/kotatsu_onSurfaceVariant</item>
		<item name="colorSurfaceInverse">@color/kotatsu_inverseSurface</item>
		<item name="colorOnSurfaceInverse">@color/kotatsu_inverseOnSurface</item>
		<item name="colorOnBackground">@color/kotatsu_onSurface</item>
		<item name="colorError">@color/error</item>
		<item name="colorErrorContainer">@color/errorContainer</item>
		<item name="colorOnError">@color/onError</item>
		<item name="colorOnErrorContainer">@color/onErrorContainer</item>
		<item name="colorOutline">@color/kotatsu_outline</item>
		<item name="colorOutlineVariant">@color/kotatsu_outline</item>

		<item name="android:divider">@color/kotatsu_outline</item>

		<!-- Handles RTL text -->
		<item name="android:textAlignment">gravity</item>
		<item name="android:textDirection">locale</item>

		<!-- Themes -->
		<item name="android:windowLightStatusBar" tools:targetApi="M">@bool/light_status_bar</item>
		<item name="android:statusBarColor">@color/dim</item>
		<item name="android:navigationBarColor">@color/surface_amoled</item>
		<item name="android:navigationBarDividerColor" tools:targetApi="o_mr1">@null</item>
		<item name="android:enforceNavigationBarContrast" tools:targetApi="Q">false</item>
		<item name="android:enforceStatusBarContrast" tools:targetApi="Q">false</item>
		<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
		<item name="alertDialogTheme">@style/ThemeOverlay.Kotatsu.AlertDialog</item>
		<item name="bottomSheetDialogTheme">@style/ThemeOverlay.Kotatsu.BottomSheetDialog</item>
		<item name="sideSheetDialogTheme">@style/ThemeOverlay.Kotatsu.SideSheetDialog</item>
		<item name="textAppearanceButton">@style/TextAppearance.Kotatsu.Button</item>
		<item name="android:buttonStyle">?attr/borderlessButtonStyle</item>
		<item name="android:backgroundDimAmount">0.32</item>
		<item name="windowActionModeOverlay">true</item>
		<item name="actionBarPopupTheme">@style/Widget.Material3.PopupMenu.ListPopupWindow</item>
		<item name="actionModeStyle">@style/Widget.Kotatsu.ActionMode</item>
		<item name="actionModeCloseDrawable">@drawable/abc_ic_clear_material</item>
		<item name="actionModeWebSearchDrawable">@drawable/abc_ic_search_api_material</item>
		<item name="preferenceTheme">@style/PreferenceThemeOverlay.Kotatsu</item>
		<item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>
		<item name="toolbarStyle">@style/Widget.Material3.Toolbar</item>
		<item name="appBarLayoutStyle">@style/Widget.Kotatsu.AppBarLayout</item>
		<item name="bottomNavigationStyle">@style/Widget.Kotatsu.BottomNavigationView</item>
		<item name="tabStyle">@style/Widget.Kotatsu.Tabs</item>
		<item name="materialCardViewStyle">@style/Widget.Kotatsu.CardView.Filled</item>
		<item name="recyclerViewStyle">@style/Widget.Kotatsu.RecyclerView</item>
		<item name="fastScrollerStyle">@style/Widget.Kotatsu.FastScroller</item>
		<item name="listItemTextViewStyle">@style/Widget.Kotatsu.ListItemTextView</item>
		<item name="materialSwitchStyle">@style/Widget.Material3.CompoundButton.MaterialSwitch</item>
		<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.M3</item>
		<item name="collapsingToolbarLayoutStyle">@style/Widget.Kotatsu.CollapsingToolbar</item>
		<item name="circularProgressIndicatorStyle">@style/Widget.Kotatsu.CircularProgressIndicator</item>
		<item name="linearProgressIndicatorStyle">@style/Widget.Kotatsu.LinearProgressIndicator</item>
		<item name="bottomSheetDragHandleStyle">@style/Widget.Kotatsu.BottomSheet.DragHandle</item>
		<item name="android:dropDownSpinnerStyle">@style/Widget.Kotatsu.Spinner.DropDown</item>
		<item name="dotIndicatorStyle">@style/Widget.Kotatsu.DotIndicator</item>
		<item name="badgeViewStyle">@style/Widget.Kotatsu.BadgeView</item>

		<!-- Text appearance -->
		<item name="actionMenuTextAppearance">@style/TextAppearance.Kotatsu.Menu</item>
		<item name="android:textAppearanceListItem">?attr/textAppearanceBodyLarge</item>
		<item name="android:textAppearanceListItemSecondary">
			@style/TextAppearance.Kotatsu.Preference.Secondary
		</item>

	</style>

	<!--== Default Theme ==-->
	<style name="Theme.Kotatsu" parent="Base.Theme.Kotatsu" />

	<!-- Monet theme only support S+ -->
	<style name="Theme.Kotatsu.Monet" />

	<style name="ThemeOverlay.Kotatsu" parent="ThemeOverlay.Material3.Light" />

	<style name="ThemeOverlay.Kotatsu.Amoled" parent="" />

	<style name="Theme.Kotatsu.AppWidgetContainer" parent="@style/Theme.MaterialComponents.Light">
		<item name="android:colorBackground">@color/kotatsu_background</item>
		<item name="android:panelColorBackground">@color/kotatsu_primaryContainer</item>
	</style>
</resources>
