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

  <style name="ThemeOverlay.KiwixTheme.BottomSheetDialog" parent="ThemeOverlay.MaterialComponents.Dialog">
    <item name="android:windowIsFloating">false</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item>
    <item name="bottomSheetStyle">@style/Widget.KiwixTheme.BottomSheet.Modal</item>
    <item name="android:navigationBarColor" tools:ignore="NewApi">?colorSurface</item>
    <item name="android:navigationBarDividerColor" tools:ignore="NewApi">
      @android:color/transparent
    </item>
  </style>

  <style name="Widget.KiwixTheme.BottomSheet.Modal" parent="Widget.MaterialComponents.BottomSheet.Modal">
    <item name="shapeAppearanceOverlay">?shapeAppearanceLargeComponent</item>
  </style>

  <style name="Widget.KiwixTheme.NavigationView" parent="Widget.MaterialComponents.NavigationView">
    <item name="itemTextAppearance">?textAppearanceBody2</item>
  </style>

  <style name="Widget.KiwixTheme.BottomAppBar" parent="Widget.MaterialComponents.BottomAppBar">
    <item name="backgroundTint">@color/black</item>
  </style>

  <style name="Widget.KiwixTheme.Toolbar.PrimarySurface" parent="Widget.MaterialComponents.Toolbar.PrimarySurface">
    <item name="android:background">@color/black</item>
  </style>

  <style name="Widget.KiwixTheme.AppBar" parent="Widget.MaterialComponents.AppBarLayout.PrimarySurface">
    <item name="android:background">@color/black</item>
  </style>

  <style name="Widget.KiwixTheme.TabLayout" parent="Widget.MaterialComponents.TabLayout">
    <item name="android:background">@color/black</item>
    <item name="tabTextColor">@color/alabaster_white</item>
  </style>

  <style name="Widget.KiwixTheme.Chip.Choice.Static" parent="Widget.MaterialComponents.Chip.Choice">
    <item name="android:clickable">false</item>
    <item name="android:textAlignment" tools:ignore="NewApi">center</item>
    <item name="android:textColor">?textSecondary</item>
  </style>


  <style name="list_item_title" parent="TextAppearance.KiwixTheme.Subtitle1" />

  <style name="list_item_body" parent="TextAppearance.KiwixTheme.Subtitle2" />

  <style name="list_item_body.detail">
    <item name="android:maxLines">1</item>
    <item name="android:textColor">?textTertiary</item>
    <item name="android:paddingEnd">5dp</item>
    <item name="android:ellipsize">end</item>
    <item name="layout_constrainedWidth">true</item>
  </style>

  <style name="list_item_body.detail.end">
    <item name="android:layout_marginEnd">@dimen/activity_horizontal_margin</item>

    <item name="android:gravity">end</item>
  </style>


  <style name="switch_style">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_gravity">end</item>
    <item name="android:paddingRight">@dimen/switch_padding</item>
    <item name="android:paddingBottom">@dimen/switch_padding_bottom</item>
    <item name="android:switchPadding">@dimen/switch_padding</item>
    <item name="android:theme">@style/ThemeOverlay.KiwixTheme.Switch</item>
    <item name="android:textAppearance">@style/TextAppearance.KiwixTheme.Body2</item>
    <item name="android:textColor">?colorOnPrimary</item>
  </style>

  <style name="kiwix_blue_button" parent="Widget.MaterialComponents.Button">
    <item name="backgroundTint">@color/denim_blue800</item>
  </style>

  <style name="snackbar_button" parent="Widget.MaterialComponents.Button.TextButton">
    <item name="android:textColor">?colorSurface</item>
  </style>

  <style name="ThemeOverlay.KiwixTheme.Switch" parent="ThemeOverlay.AppCompat.Light">
    <item name="colorControlActivated">@color/denim_blue200</item>
    <item name="android:colorForeground">@color/alabaster_white</item>
  </style>

  <style name="Widget.KiwixTheme.CardView" parent="Widget.MaterialComponents.CardView">
    <item name="cardBackgroundColor">?cardViewBackground</item>
  </style>

  <style name="Widget.KiwixTheme.BottomNavigationView" parent="Widget.MaterialComponents.BottomNavigationView">
    <item name="backgroundTint">@color/black</item>
    <item name="itemIconTint">@drawable/bottom_navigation_theme_selector</item>
    <item name="itemTextColor">@drawable/bottom_navigation_theme_selector</item>
    <item name="itemRippleColor">@drawable/bottom_navigation_theme_selector</item>
  </style>

  <style name="ThemeOverlay.KiwixTheme.ProgressBar" parent="">
    <item name="colorAccent">@color/denim_blue400</item>
  </style>

  <style name="no_content" parent="TextAppearance.KiwixTheme.Headline6">
    <item name="android:layout_width">wrap_content</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_gravity">center</item>
    <item name="android:gravity">center</item>
    <item name="android:visibility">gone</item>
  </style>

</resources>
