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

  <style name="DayNight" parent="Theme.MaterialComponents.Light.NoActionBar" />

  <style name="DayNightDialog" parent="Theme.MaterialComponents.Light.Dialog" />

  <style name="DayNightAlert" parent="ThemeOverlay.MaterialComponents.Dialog.Alert" />

  <style name="TasksBase" parent="DayNight">
    <item name="android:windowBackground">@color/window_background</item>
    <item name="android:colorBackground">@color/content_background</item>
    <item name="windowActionModeOverlay">true</item>
    <item name="actionModeStyle">@style/ActionModeStyle</item>
    <item name="actionBarTheme">@style/ActionModeTheme</item>
    <item name="actionModeCloseButtonStyle">@style/ActionModeCloseButton</item>
    <item name="actionModeCloseDrawable">@drawable/ic_outline_arrow_back_24px</item>
    <item name="android:spinnerItemStyle">@style/SpinnerNoPadding</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:textColorPrimary">@color/text_primary</item>
    <item name="android:textColorSecondary">@color/text_secondary</item>
    <item name="android:textColorTertiary">@color/text_tertiary</item>
    <item name="horizontal_divider_visibility">2</item> <!-- View.GONE -->
    <item name="materialTimePickerTheme">@style/ClockTheme</item>
    <item name="materialCalendarTheme">@style/CalendarTheme</item>
    <item name="textInputStyle">@style/OutlinedBox</item>
  </style>

  <style name="Tasks" parent="TasksBase">
    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    <item name="android:windowLightStatusBar">@bool/light_status_bar</item>
    <item name="android:statusBarColor">@color/content_background</item>
  </style>

  <style name="TasksDialogAlert" parent="DayNightAlert">
    <item name="android:textColorPrimary">@color/text_primary</item>
    <item name="android:background">@color/dialog_background</item>
    <item name="buttonBarPositiveButtonStyle">@style/AlertButtonStyle</item>
    <item name="buttonBarNegativeButtonStyle">@style/AlertButtonStyle</item>
    <item name="buttonBarNeutralButtonStyle">@style/AlertButtonStyle</item>
  </style>

  <style name="TasksDialog" parent="DayNightDialog"/>

  <style name="ThemeBlack" parent="Tasks">
    <item name="android:windowBackground">@android:color/black</item>
    <item name="android:colorBackground">@android:color/black</item>
    <item name="horizontal_divider_visibility">0</item> <!-- View.VISIBLE -->
  </style>

  <style name="Wallpaper" parent="Tasks">
    <item name="android:windowBackground">@color/black_38</item>
    <item name="android:colorBackground">@color/black_60</item>
    <item name="android:windowShowWallpaper">true</item>
  </style>

</resources>