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

  <style name="popup_overlay" parent="ThemeOverlay.MaterialComponents.Light"/>

  <style name="SpinnerNoPadding" parent="Widget.AppCompat.TextView.SpinnerItem">
    <item name="android:paddingStart">0dp</item>
    <item name="android:paddingEnd">0dp</item>
  </style>

  <style name="TranslucentDialog" parent="DayNightDialog">
    <item name="viewInflaterClass">androidx.appcompat.app.AppCompatViewInflater</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:colorBackgroundCacheHint">@null</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowCloseOnTouchOutside">false</item>
    <item name="dialogTheme">@style/TasksDialog</item>
    <item name="android:dialogTheme">@style/TasksDialog</item>
    <item name="alertDialogTheme">@style/TasksDialogAlert</item>
    <item name="materialAlertDialogTheme">@style/TasksDialogAlert</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowAnimationStyle">@android:style/Animation</item>
    <item name="materialTimePickerTheme">@style/ClockTheme</item>
    <item name="materialCalendarTheme">@style/CalendarTheme</item>
    <item name="textInputStyle">@style/OutlinedBox</item>
  </style>

  <style name="TranslucentWindow" parent="TasksBase">
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowAnimationStyle">@null</item>
    <item name="android:colorBackgroundCacheHint">@null</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowIsFloating">false</item>
  </style>

  <style name="ToolbarTheme" parent="ThemeOverlay.MaterialComponents.Light">
    <item name="toolbarNavigationButtonStyle">@style/BlackNavigation</item>
    <item name="iconTint">@color/text_primary</item>
    <item name="android:actionOverflowButtonStyle">@style/BlackOverflow</item>
    <item name="android:editTextColor">@color/text_primary</item>
    <item name="android:textColorHint">@color/text_secondary</item>
  </style>

  <style name="WhiteToolbarTheme">
    <item name="overlay_theme">@style/WhiteToolbarOverlay</item>
    <item name="iconTint">@color/white_100</item>
    <item name="colorOnPrimary">@color/white_100</item>
    <item name="android:actionOverflowButtonStyle">@style/WhiteOverflow</item>
    <item name="toolbarNavigationButtonStyle">@style/WhiteNavigation</item>
  </style>

  <style name="BlackToolbarTheme">
    <item name="overlay_theme">@style/BlackToolbarOverlay</item>
    <item name="iconTint">@color/black_87</item>
    <item name="colorOnPrimary">@color/black_87</item>
    <item name="android:actionOverflowButtonStyle">@style/BlackOverflow</item>
    <item name="toolbarNavigationButtonStyle">@style/BlackNavigation</item>
  </style>

  <style name="WhiteTint">
    <item name="colorOnSecondary">@color/white_100</item>
  </style>

  <style name="BlackTint">
    <item name="colorOnSecondary">@color/black_87</item>
  </style>

  <style name="WhiteNavigation" parent="Widget.AppCompat.Toolbar.Button.Navigation">
    <item name="android:tint">@color/white_100</item>
  </style>

  <style name="WhiteOverflow" parent="Widget.AppCompat.Light.ActionButton.Overflow">
    <item name="android:tint">@color/white_100</item>
  </style>

  <style name="ActionModeStyle" parent="Widget.AppCompat.ActionMode">
    <item name="background">@color/content_background</item>
    <item name="titleTextStyle">@style/ActionModeTitleTextStyle</item>
  </style>

  <style name="ActionModeTitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionMode.Title">
    <item name="android:textColor">@color/text_primary</item>
  </style>

  <style name="ActionModeTheme" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
    <item name="iconTint">@color/text_primary</item>
    <item name="android:actionOverflowButtonStyle">@style/ActionModeOverflowButton</item>
  </style>

  <style name="ActionModeOverflowButton" parent="Widget.AppCompat.Light.ActionButton.Overflow">
    <item name="android:tint">@color/text_primary</item>
  </style>

  <style name="ActionModeCloseButton" parent="Widget.AppCompat.ActionButton.CloseMode">
    <item name="android:tint">@color/text_primary</item>
  </style>

  <style name="BlackNavigation" parent="Widget.AppCompat.Toolbar.Button.Navigation">
    <item name="android:tint">@color/black_100</item>
  </style>

  <style name="BlackOverflow" parent="Widget.AppCompat.Light.ActionButton.Overflow">
    <item name="android:tint">@color/black_100</item>
  </style>

  <style name="WhiteToolbarOverlay" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
    <item name="colorControlNormal">@color/white_100</item>
    <item name="android:textColorHint">@color/white_60</item>
    <item name="android:editTextColor">@color/white_100</item>
  </style>

  <style name="BlackToolbarOverlay" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
    <item name="colorControlNormal">@color/black_87</item>
    <item name="android:textColorHint">@color/black_87</item>
    <item name="android:editTextColor">@color/black_87</item>
  </style>

  <style name="TagSettingsRow" parent="Widget.Design.TextInputLayout">
    <item name="android:textSize">18sp</item>
    <item name="android:clickable">true</item>
    <item name="android:focusable">true</item>
    <item name="android:padding">@dimen/keyline_first</item>
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
  </style>

  <style name="TagSettingsEditText">
    <item name="android:maxLines">1</item>
    <item name="android:inputType">textNoSuggestions</item>
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:imeOptions">flagNoExtractUi</item>
  </style>

  <!--================================================== General == -->

  <style name="TextAppearance" parent="TextAppearance.MaterialComponents.Body1">
    <item name="android:textColor">@color/text_primary</item>
  </style>

  <style name="DateTimeShortcuts" parent="Widget.MaterialComponents.Button.TextButton">
    <item name="android:textColor">@color/button_accent_text</item>
    <item name="android:textAppearance">@style/TextAppearance.MaterialComponents.Body1</item>
    <item name="android:paddingTop">@dimen/quarter_keyline_first</item>
    <item name="android:paddingBottom">@dimen/quarter_keyline_first</item>
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="iconPadding">@dimen/keyline_first</item>
    <item name="iconTint">@color/button_accent_text</item>
    <item name="android:gravity">start|center_vertical</item>
    <item name="backgroundTint">@android:color/transparent</item>
    <item name="rippleColor">?attr/colorSecondary</item>
  </style>

  <!--=============================================== MainActivity == -->

  <style name="BaseHorizontalDivider">
    <item name="android:background">?attr/dividerHorizontal</item>
  </style>

  <style name="vertical_divider">
    <item name="android:layout_width">0dp</item>
    <item name="android:layout_height">0dp</item>
    <item name="android:visibility">gone</item>
  </style>

  <style name="horizontal_divider" parent="BaseHorizontalDivider">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">1dp</item>
  </style>

  <style name="task_edit_row_divider" parent="horizontal_divider">
    <item name="android:layout_gravity">end|bottom</item>
  </style>

  <style name="task_list_container">
    <item name="android:elevation" tools:ignore="NewApi">@dimen/elevation_refresh_indicator</item>
  </style>

  <style name="OutlineButton" parent="Widget.MaterialComponents.Button.OutlinedButton">
    <item name="android:textColor">@color/button_accent_text</item>
    <item name="backgroundTint">@color/button_accent_background</item>
    <item name="rippleColor">@color/button_accent_ripple</item>
    <item name="strokeColor">@color/button_selected_accent_stroke</item>
  </style>

  <style name="AlertButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog.Flush">
    <item name="android:textColor">?attr/colorSecondary</item>
  </style>

  <style name="WidgetTitle" parent="TextAppearance">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_centerVertical">true</item>
    <item name="android:ellipsize">end</item>
    <item name="android:gravity">start|center_vertical</item>
    <item name="android:maxLines">2</item>
    <item name="android:textAlignment">viewStart</item>
    <item name="android:textSize">18sp</item>
  </style>

  <style name="WidgetButton">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_centerVertical">true</item>
    <item name="android:background">@android:color/transparent</item>
    <item name="android:scaleType">fitCenter</item>
  </style>

  <style name="ClockTheme" parent="ThemeOverlay.MaterialComponents.TimePicker">
    <item name="materialClockStyle">@style/ClockStyle</item>
  </style>

  <style name="ClockStyle" parent="Widget.MaterialComponents.TimePicker.Clock">
    <item name="clockHandColor">?attr/colorSecondary</item>
    <item name="clockNumberTextColor">@color/clock_text_color</item>
  </style>

  <style name="CalendarTheme" parent="@style/ThemeOverlay.MaterialComponents.MaterialCalendar">
    <item name="materialCalendarStyle">@style/CalendarStyle</item>
    <item name="materialCalendarHeaderLayout">@style/CalendarHeaderLayout</item>
    <item name="materialCalendarHeaderDivider">@style/CalendarHeaderDivider</item>
    <item name="materialCalendarHeaderTitle">@style/CalendarHeaderTitle</item>
    <item name="materialCalendarHeaderSelection">@style/CalendarHeaderSelection</item>
    <item name="android:colorControlActivated">?attr/colorSecondary</item>
  </style>

  <style name="CalendarStyle" parent="@style/Widget.MaterialComponents.MaterialCalendar">
    <item name="daySelectedStyle">@style/CalendarDaySelected</item>
    <item name="yearSelectedStyle">@style/CalendarYearSelected</item>
    <item name="hintTextColor">?attr/colorSecondary</item>
  </style>

  <style name="CalendarHeaderLayout" parent="Widget.MaterialComponents.MaterialCalendar.HeaderLayout">
    <item name="android:background">?attr/colorSecondary</item>
  </style>

  <style name="CalendarHeaderDivider" parent="Widget.MaterialComponents.MaterialCalendar.HeaderDivider">
    <item name="android:background">?attr/colorOnSecondary</item>
  </style>

  <style name="CalendarHeaderTitle" parent="Widget.MaterialComponents.MaterialCalendar.HeaderTitle">
    <item name="android:textColor">?attr/colorOnSecondary</item>
  </style>

  <style name="CalendarHeaderSelection" parent="Widget.MaterialComponents.MaterialCalendar.HeaderSelection">
    <item name="android:textColor">?attr/colorOnSecondary</item>
  </style>

  <style name="CalendarDaySelected" parent="Widget.MaterialComponents.MaterialCalendar.Day.Selected">
    <item name="itemFillColor">?attr/colorSecondary</item>
    <item name="itemTextColor">?attr/colorOnSecondary</item>
  </style>

  <style name="CalendarYearSelected" parent="Widget.MaterialComponents.MaterialCalendar.Year.Selected">
    <item name="itemFillColor">?attr/colorSecondary</item>
    <item name="itemTextColor">?attr/colorOnSecondary</item>
    <item name="itemStrokeColor">?attr/colorOnSecondary</item>
  </style>

  <style name="OutlinedBox" parent="Widget.MaterialComponents.TextInputLayout.FilledBox">
    <item name="boxStrokeColor">?attr/colorSecondary</item>
    <item name="hintTextColor">?attr/colorSecondary</item>
  </style>

</resources>
