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

  <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
    <item name="android:forceDarkAllowed" tools:targetApi="q">true</item>

    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="android:navigationBarColor">@color/colorPrimary</item>

    <item name="materialButtonStyle">@style/AppTheme.ButtonStyle</item>

    <item name="preferenceTheme">@style/AppTheme.Preference</item>

    <item name="colorError">@color/colorError</item>

    <item name="buttonBarNegativeButtonStyle">@style/AppTheme.DialogButtonStyle</item>
    <item name="buttonBarPositiveButtonStyle">@style/AppTheme.DialogButtonStyle</item>
  </style>

  <style name="AppTheme.Fragment"></style>

  <style name="AppTheme.ButtonStyle" parent="Widget.MaterialComponents.Button">
    <item name="materialThemeOverlay">@style/AppTheme.ButtonStyleTextColor</item>
  </style>

  <style name="AppTheme.ButtonStyleTextColor">
    <item name="colorPrimary">@android:color/transparent</item>
    <item name="colorOnPrimary">@color/controlColor</item>
  </style>

  <style name="AppTheme.Title">
    <item name="android:fontFamily">sans-serif-light</item>
    <item name="android:textSize">32sp</item>
    <item name="android:textColor">@color/itemTitle</item>
    <item name="android:textStyle">bold</item>
  </style>

  <style name="AppTheme.ItemTitle">
    <item name="android:textSize">16sp</item>
    <item name="android:textColor">@color/itemTitle</item>
    <item name="android:fontFamily">sans-serif-medium</item>
  </style>

  <style name="AppTheme.OutlinedButton" parent="Widget.MaterialComponents.Button.OutlinedButton">
    <item name="rippleColor">@android:color/darker_gray</item>
    <item name="android:textColor">@color/controlForeground</item>
    <item name="iconTint">@color/controlForeground</item>
  </style>

  <style name="AppTheme.Preference" parent="PreferenceThemeOverlay">
    <item name="android:textColor">@color/itemTitle</item>
    <item name="android:tint">@color/blackWhileLight</item>

    <item name="preferenceCategoryStyle">@style/AppTheme.PreferenceCategory</item>
  </style>

  <style name="AppTheme.PreferenceCategory" parent="Preference.Category">
    <item name="android:layout" tools:override="true">@layout/preference_category</item>
  </style>

  <style name="IconButton" parent="Widget.AppCompat.ActionButton">
    <item name="android:tint">@color/controlForeground</item>
    <item name="android:adjustViewBounds">true</item>
    <item name="android:scaleType">centerCrop</item>
  </style>

  <style name="AppTheme.AppBar" parent="ThemeOverlay.MaterialComponents.Toolbar.Primary">
    <item name="android:drawableTint" tools:targetApi="m">@android:color/white</item>
    <item name="android:tint">@android:color/white</item>

    <item name="actionBarPopupTheme">@style/AppTheme.PopupMenu</item>
    <item name="popupTheme">@style/AppTheme.PopupMenu</item>
  </style>

  <style name="AppTheme.PopupMenu" parent="ThemeOverlay.MaterialComponents.Toolbar.Primary">
    <item name="android:drawableTint" tools:targetApi="m">@color/blackWhileLight</item>
    <item name="android:tint">@color/blackWhileLight</item>
  </style>

  <style name="AppTheme.FloatingBottomSheet" parent="Theme.MaterialComponents.DayNight.BottomSheetDialog">
    <item name="bottomSheetStyle">@style/AppTheme.BottomSheetStyle</item>
  </style>

  <style name="AppTheme.BottomSheetStyle" parent="Widget.Design.BottomSheet.Modal">
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:background">@android:color/transparent</item>
  </style>

  <style name="AppTheme.TrackDetailsLabel" parent="TextAppearance.MaterialComponents.Overline">
    <item name="android:textSize">12sp</item>
  </style>

  <style name="AppTheme.TrackDetailsValue">
    <item name="android:textSize">16sp</item>
  </style>

  <style name="AppTheme.DialogButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
    <item name="android:textColor">@color/controlColor</item>
  </style>

  <style name="AppTheme.ListHeader">
    <item name="android:fontFamily">sans-serif-medium</item>
    <item name="android:textSize">14sp</item>
    <item name="android:textColor">@android:color/white</item>
  </style>

  <style name="AppTheme.IconButton" parent="Widget.MaterialComponents.Button.OutlinedButton">
    <item name="iconPadding">0dp</item>
    <item name="android:insetBottom">0dp</item>
    <item name="android:paddingLeft">12dp</item>
    <item name="android:paddingRight">12dp</item>
    <item name="android:minWidth">43dp</item>
    <item name="android:minHeight">43dp</item>
    <item name="android:background">@android:color/transparent</item>
  </style>

</resources>
