<!--
  ~ Aurora Store
  ~ Copyright (C) 2019, Rahul Kumar Patel <whyorean@gmail.com>
  ~
  ~ Aurora Store is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 2 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Aurora Store is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Aurora Store.  If not, see <http://www.gnu.org/licenses/>.
  ~
  ~
  -->

<resources>

    <style name="RatingBarReviews" parent="Theme.MaterialComponents">
        <item name="colorControlNormal">@color/colorGold</item>
        <item name="colorControlActivated">@color/colorGold</item>
    </style>

    <!-- Toolbar & AppBar -->
    <style name="AppTheme.PopupTheme" parent="ThemeOverlay.MaterialComponents.Light" />

    <style name="AppTheme.PopupTheme.Dark" parent="ThemeOverlay.MaterialComponents.Dark" />

    <style name="Widget.Toolbar" parent="Widget.AppCompat.Toolbar">
        <item name="android:background">?android:attr/windowBackground</item>
        <item name="titleTextAppearance">@style/TextAppearance.Aurora.Toolbar.Title</item>
        <item name="popupTheme">@style/AppTheme.PopupTheme</item>
    </style>

    <style name="Widget.Toolbar.Dark" parent="Widget.AppCompat.Toolbar">
        <item name="android:background">?android:attr/windowBackground</item>
        <item name="titleTextAppearance">@style/TextAppearance.Aurora.Toolbar.Title</item>
        <item name="popupTheme">@style/AppTheme.PopupTheme.Dark</item>
    </style>

    <style name="Widget.AppBar" parent="@style/Widget.Design.AppBarLayout">
        <item name="popupTheme">@style/AppTheme.PopupTheme</item>
        <item name="android:background">?android:attr/windowBackground</item>
        <item name="android:orientation">vertical</item>
    </style>

    <!-- Chips -->
    <style name="Widget.Aurora.Chip.Info" parent="@style/Widget.MaterialComponents.Chip.Action">
        <item name="iconStartPadding">2dp</item>
        <item name="enforceTextAppearance">true</item>
        <item name="rippleColor">@color/colorTransparent</item>
        <item name="chipBackgroundColor">?android:attr/colorBackground</item>
        <item name="chipEndPadding">@dimen/margin_xxsmall</item>
        <item name="chipStartPadding">@dimen/margin_xxsmall</item>
        <item name="chipStrokeWidth">1dp</item>
        <item name="chipStrokeColor">?android:attr/strokeColor</item>
        <item name="android:textAppearance">@style/TextAppearance.Aurora.Chip</item>
    </style>

    <style name="Widget.Aurora.Chip.Review" parent="@style/Widget.MaterialComponents.Chip.Filter">
        <item name="iconStartPadding">2dp</item>
        <item name="enforceTextAppearance">true</item>
        <item name="rippleColor">@color/colorTransparent</item>
        <item name="chipBackgroundColor">?android:attr/colorBackground</item>
        <item name="chipEndPadding">@dimen/margin_xxsmall</item>
        <item name="chipStartPadding">@dimen/margin_xxsmall</item>
        <item name="chipStrokeWidth">1dp</item>
        <item name="chipStrokeColor">?android:attr/strokeColor</item>
        <item name="checkedIcon">@drawable/ic_check</item>
        <item name="android:textAppearance">@style/TextAppearance.Aurora.Chip</item>
    </style>

    <style name="Widget.Aurora.FilterChip" parent="Widget.Aurora.Chip.Review" />

    <!-- Bottom Navigation -->
    <style name="Widget.Aurora.BottomNavigation" parent="@style/Widget.MaterialComponents.BottomNavigationView">
        <item name="itemIconTint">@color/color_selector</item>
        <item name="itemTextColor">@color/color_selector</item>
        <item name="labelVisibilityMode">labeled</item>
    </style>
</resources>