<?xml version="1.0" encoding="utf-8"?>
<resources>

	<style name="BriarTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
		<item name="colorPrimary">@color/briar_primary</item>
		<item name="colorPrimaryDark">@color/briar_primary_dark</item>
		<item name="colorAccent">@color/briar_accent</item>
		<item name="android:textColorLink">@color/briar_text_link</item>
		<item name="android:windowBackground">@color/window_background</item>
		<item name="android:windowAnimationStyle">@style/ActivityAnimation</item>
		<item name="windowActionModeOverlay">true</item>
		<item name="alertDialogTheme">@style/BriarDialogTheme.Neutral</item>
		<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
	</style>

	<style name="BriarTheme.NoActionBar" parent="BriarTheme">
		<item name="windowActionBar">false</item>
		<item name="windowNoTitle">true</item>
		<item name="toolbarStyle">@style/BriarToolbar</item>
	</style>

	<style name="BriarTheme.ActionBarOverlay" parent="BriarTheme.NoActionBar">
		<item name="android:windowActionBarOverlay">true</item>
	</style>

	<style name="ActivityAnimation" parent="@android:style/Animation.Activity">
		<item name="android:activityOpenEnterAnimation">@anim/screen_new_in</item>
		<item name="android:activityOpenExitAnimation">@anim/screen_old_out</item>
		<item name="android:activityCloseEnterAnimation">@anim/screen_old_in</item>
		<item name="android:activityCloseExitAnimation">@anim/screen_new_out</item>
	</style>

	<style name="BriarDialogTheme" parent="Theme.AppCompat.DayNight.Dialog.MinWidth">
		<item name="colorPrimary">@color/briar_primary</item>
		<item name="colorPrimaryDark">@color/briar_primary_dark</item>
		<item name="colorAccent">@color/briar_accent</item>
		<item name="buttonBarPositiveButtonStyle">@style/BriarButtonFlat.Positive</item>
		<item name="buttonBarNeutralButtonStyle">@style/BriarButtonFlat.Neutral</item>
		<item name="buttonBarNegativeButtonStyle">@style/BriarButtonFlat.Negative</item>
		<item name="android:textColorLink">@color/briar_text_link</item>
		<item name="android:windowBackground">@color/window_background</item>
		<item name="android:windowAnimationStyle">@style/DialogAnimation</item>
		<item name="android:filterTouchesWhenObscured">true</item>
	</style>

	<style name="BriarFullScreenDialogTheme" parent="BriarDialogTheme">
		<item name="android:windowIsFloating">false</item>
		<item name="android:windowAnimationStyle">@style/FullScreenDialogAnimation</item>
	</style>

	<style name="FullScreenDialogAnimation" parent="@android:style/Animation.Activity">
		<item name="android:windowEnterAnimation">@anim/step_next_in</item>
		<item name="android:windowExitAnimation">@anim/step_next_out</item>
	</style>

	<!-- Use this with care. Only used for the screen filter warning dialog -->
	<style name="BriarDialogThemeNoFilter" parent="BriarDialogTheme">
		<item name="android:filterTouchesWhenObscured">false</item>
	</style>

	<!-- Uses neutral colors for the buttons -->
	<style name="BriarDialogTheme.Neutral" parent="BriarDialogTheme">
		<item name="buttonBarPositiveButtonStyle">@style/BriarButtonFlat.Neutral</item>
		<item name="buttonBarNeutralButtonStyle">@style/BriarButtonFlat.Neutral</item>
		<item name="buttonBarNegativeButtonStyle">@style/BriarButtonFlat.Neutral</item>
	</style>

	<style name="DialogAnimation" parent="@android:style/Animation.Dialog">
		<item name="android:windowEnterAnimation">@anim/fade_in</item>
		<item name="android:windowExitAnimation">@anim/fade_out</item>
	</style>

	<style name="OnboardingDialogTheme" parent="BriarDialogTheme">
		<item name="android:background">@color/briar_primary</item>
		<item name="android:textColorPrimary">@color/briar_text_primary_inverse</item>
		<item name="android:textColorSecondary">@color/briar_text_secondary_inverse</item>
		<item name="buttonBarNeutralButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
	</style>

	<style name="TranslucentTheme" parent="Theme.AppCompat.NoActionBar">
		<item name="android:colorBackgroundCacheHint">@null</item>
		<item name="android:windowAnimationStyle">@android:style/Animation</item>
		<item name="android:windowBackground">@android:color/transparent</item>
		<item name="android:windowContentOverlay">@null</item>
		<item name="android:windowIsTranslucent">true</item>
		<item name="android:windowNoTitle">true</item>
	</style>

</resources>