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

	<style name="BriarToolbar" parent="Widget.AppCompat.Toolbar">
		<item name="android:background">?colorPrimary</item>
		<item name="android:textColorPrimary">@color/briar_text_primary_inverse</item>
		<item name="android:textSize">@dimen/text_size_medium</item>
		<item name="colorPrimary">@color/briar_primary</item>
		<item name="titleTextAppearance">@style/BriarToolbarTitleTextAppearance</item>
		<item name="subtitleTextAppearance">@style/BriarToolbarSubTitleTextAppearance</item>
		<item name="android:theme">@style/BriarToolbarTheme</item>
		<item name="popupTheme">@style/PopupMenu</item>
	</style>

	<style name="BriarToolbarTheme">
		<item name="colorControlNormal">@color/briar_text_primary_inverse</item>
	</style>

	<style name="BriarToolbarTitleTextAppearance" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
		<item name="android:textColor">@color/briar_text_primary_inverse</item>
	</style>

	<style name="BriarToolbarSubTitleTextAppearance" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
		<item name="android:textColor">@color/briar_text_secondary_inverse</item>
	</style>

	<style name="PopupMenu" parent="Theme.AppCompat.DayNight.DarkActionBar">
		<item name="android:colorBackground">@color/window_background</item>
	</style>

	<style name="ButtonTheme" parent="Theme.AppCompat.DayNight">
		<!-- A strange hack needed only to override button color on all API levels -->
		<item name="colorAccent">@color/briar_button_background_color</item>
	</style>

	<style name="BriarButton" parent="Widget.AppCompat.Button.Colored">
		<item name="android:theme">@style/ButtonTheme</item>
		<item name="android:layout_width">match_parent</item>
		<item name="android:layout_height">wrap_content</item>
		<item name="android:textSize">@dimen/text_size_medium</item>
		<item name="android:padding">@dimen/margin_large</item>
		<item name="android:textColor">@color/button_text</item>
	</style>

	<style name="BriarButtonFlat.Negative" parent="Widget.AppCompat.Button.Borderless">
		<item name="android:textColor">@color/briar_button_text_negative</item>
		<item name="android:textSize">@dimen/text_size_medium</item>
	</style>

	<style name="BriarButtonFlat.Positive" parent="Widget.AppCompat.Button.Borderless">
		<item name="android:textColor">@color/briar_button_text_positive</item>
		<item name="android:textSize">@dimen/text_size_medium</item>
	</style>

	<style name="BriarButtonFlat.Neutral" parent="Widget.AppCompat.Button.Borderless">
		<item name="android:textColor">@color/briar_button_text_neutral</item>
		<item name="android:textSize">@dimen/text_size_medium</item>
	</style>

	<style name="BriarButtonFlat.Positive.Tiny" parent="BriarButtonFlat.Positive">
		<item name="android:textSize">@dimen/text_size_tiny</item>
		<item name="android:padding">@dimen/margin_medium</item>
		<item name="android:minWidth">@dimen/button_size</item>
	</style>

	<style name="Divider">
		<item name="android:background">@color/divider</item>
	</style>

	<style name="Divider.Horizontal" parent="Divider">
		<item name="android:layout_width">match_parent</item>
		<item name="android:layout_height">1px</item>
	</style>

	<style name="Divider.ContactList" parent="Divider">
		<item name="android:layout_width">match_parent</item>
		<item name="android:layout_height">1px</item>
	</style>

	<style name="Divider.ThreadItem" parent="Divider">
		<item name="android:layout_width">match_parent</item>
		<item name="android:layout_height">@dimen/forum_nested_line_width</item>
		<item name="android:background">@color/thread_indicator</item>
	</style>

	<style name="BriarAvatar">
		<item name="civ_border_width">@dimen/avatar_border_width</item>
		<item name="civ_border_color">?android:attr/textColorSecondary</item>
	</style>

	<style name="TextMessage">
		<item name="android:textIsSelectable">true</item>
		<item name="android:textSize">@dimen/text_size_medium</item>
		<item name="android:textColor">?android:attr/textColorPrimary</item>
	</style>

	<style name="TextMessage.Notice">
		<item name="android:textIsSelectable">true</item>
		<item name="android:textSize">@dimen/text_size_small</item>
		<item name="android:textColor">?android:attr/textColorSecondary</item>
		<item name="android:textStyle">italic</item>
	</style>

	<style name="TextMessage.Timestamp">
		<item name="android:textIsSelectable">false</item>
		<item name="android:textSize">@dimen/text_size_tiny</item>
		<item name="android:textColor">?android:attr/textColorTertiary</item>
		<item name="android:maxLines">1</item>
	</style>

	<style name="DiscussionLevelIndicator">
		<item name="android:layout_height">match_parent</item>
		<item name="android:layout_width">@dimen/forum_nested_line_width</item>
		<item name="android:layout_marginLeft">5dp</item>
		<item name="android:layout_marginStart" tools:targetApi="jelly_bean_mr1">5dp</item>
		<item name="android:background">@color/thread_indicator</item>
		<item name="android:visibility">gone</item>
	</style>

	<style name="BriarCard" parent="CardView">
		<item name="cardUseCompatPadding">true</item>
		<item name="cardBackgroundColor">@color/card_background</item>
		<item name="android:layout_margin">@dimen/margin_small</item>
	</style>

	<style name="StepBubble">
		<item name="android:layout_width">28dp</item>
		<item name="android:layout_height">28dp</item>
		<item name="android:background">@drawable/bubble_accent</item>
		<item name="android:gravity">center</item>
		<item name="android:textColor">@color/briar_white</item>
		<item name="android:textSize">18sp</item>
	</style>

	<style name="StepBubble.Upcoming">
		<item name="android:alpha">0.5</item>
	</style>

	<style name="StepBubble.Completed">
		<item name="android:background">@drawable/bubble_completed</item>
		<item name="android:scaleType">center</item>
		<item name="android:src">@drawable/ic_check_white</item>
	</style>

</resources>