<!--
  ~ Aurora Store
  ~  Copyright (C) 2021, 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="AppTheme" parent="Theme.Material3.DynamicColors.Light.NoActionBar">
        <item name="chipStyle">@style/Chip.Filter</item>
        <item name="preferenceTheme">@style/AppTheme.PreferenceThemeOverlay</item>
        <item name="bottomSheetStyle">@style/AppTheme.BottomSheetStyle</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>

    <style name="AppTheme.Translucent" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar">
        <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:windowAnimationStyle">@android:style/Animation</item>
        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
    </style>

    <style name="AppTheme.BottomSheetStyle" parent="Widget.Material3.BottomSheet" />

    <style name="AppTheme.PreferenceThemeOverlay" parent="@style/PreferenceThemeOverlay">
        <item name="android:layout">@layout/fragment_setting</item>
        <item name="switchPreferenceCompatStyle">@style/AppTheme.SwitchPreference</item>
    </style>

    <style name="AppTheme.SwitchPreference" parent="@style/Preference.SwitchPreferenceCompat.Material">
        <item name="widgetLayout">@layout/preference_material_switch</item>
    </style>

    <style name="Chip.Filter" parent="@style/Widget.Material3.Chip.Filter" />

    <style name="Chip.TopChart" parent="@style/Widget.Material3.Chip.Filter">
        <item name="android:textAppearance">@style/TextAppearance.Aurora.Line1</item>
        <item name="chipStrokeColor">?attr/colorControlHighlight</item>
    </style>

    <style name="Chip.Tag" parent="@style/Widget.Material3.Chip.Assist">
        <item name="android:clickable">false</item>
        <item name="android:textAppearance">@style/TextAppearance.Aurora.Line2</item>
        <item name="chipBackgroundColor">?attr/colorControlHighlight</item>
        <item name="chipStrokeWidth">0dp</item>
    </style>
</resources>
