1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<resources xmlns:android="http://schemas.android.com/apk/res/android">
18    <style name="ActionBarThemeCommon" parent="@style/ThemeOverlay.AppCompat.ActionBar">
19        <item name="colorControlNormal">?android:textColorSecondary</item>
20        <!-- Modern platform themes set actionMenuTextColor to textColorPrimary. For example,
21             see Theme.Material in frameworks/base/core/res/res/values/themes_material.xml.
22             However, if the platform theme does not set actionMenuTextColor we are going to
23             crash, so let's set it here. Additionally, most of our ActionBarTheme themes
24             override this -->
25        <item name="android:actionMenuTextColor">?android:textColorPrimary</item>
26        <item name="android:textAllCaps">false</item>
27    </style>
28
29    <!-- This gets overridden for specific platform versions and/or configs -->
30    <style name="ActionBarTheme" parent="@style/ActionBarThemeCommon"/>
31
32    <style name="ActionModeStyle" parent="Widget.AppCompat.ActionMode">
33        <!-- attr "height" was used by support lib should not in overlay scope -->
34        <item name="height">@dimen/action_bar_size</item>
35        <item name="titleTextStyle">@style/ActionModeTitle</item>
36        <item name="android:layout_margin">@dimen/search_bar_margin</item>
37    </style>
38
39    <style name="CardViewStyle" parent="@style/Widget.MaterialComponents.CardView">
40        <item name="cardBackgroundColor">@color/app_background_color</item>
41        <item name="cardPreventCornerOverlap">false</item>
42        <item name="cardCornerRadius">@dimen/grid_item_radius</item>
43        <item name="cardElevation">@dimen/grid_item_elevation</item>
44    </style>
45
46    <style name="TrimmedHorizontalProgressBar" parent="android:Widget.Material.ProgressBar.Horizontal">
47        <item name="android:indeterminateDrawable">@drawable/progress_indeterminate_horizontal_material_trimmed</item>
48        <item name="android:minHeight">3dp</item>
49        <item name="android:maxHeight">3dp</item>
50    </style>
51
52    <style name="SnackbarButtonStyle" parent="@style/Widget.AppCompat.Button.Borderless">
53        <item name="android:textColor">?android:colorPrimary</item>
54    </style>
55
56    <style name="AutoCompleteTextViewStyle" parent="@style/Widget.AppCompat.AutoCompleteTextView">
57        <item name="android:textColorHint">?android:attr/textColorSecondary</item>
58        <item name="android:textAppearance">@style/AutoCompleteText</item>
59    </style>
60
61    <style name="BottomSheetDialogStyle" parent="@style/ThemeOverlay.MaterialComponents.BottomSheetDialog">
62        <item name="android:windowIsFloating">false</item>
63        <item name="bottomSheetStyle">@style/BottomSheet</item>
64        <item name="colorControlHighlight">@color/ripple_material_light</item>
65    </style>
66
67    <style name="BottomSheet" parent="@style/Widget.Design.BottomSheet.Modal">
68        <item name="android:background">@drawable/bottom_sheet_dialog_background</item>
69    </style>
70
71    <style name="OverflowButtonStyle" parent="@style/Widget.AppCompat.ActionButton.Overflow">
72        <item name="android:tint">?android:colorControlNormal</item>
73        <item name="android:minWidth">@dimen/button_touch_size</item>
74    </style>
75
76    <style name="OverflowMenuStyle" parent="@style/Widget.AppCompat.PopupMenu.Overflow">
77        <item name="android:popupBackground">@drawable/menu_dropdown_panel</item>
78        <item name="android:dropDownWidth">wrap_content</item>
79        <item name="android:overlapAnchor">false</item>
80    </style>
81
82    <style name="MaterialAlertDialogTitleStyle" parent="@style/MaterialAlertDialog.MaterialComponents.Title.Text.CenterStacked">
83        <item name="android:textColor">?attr/colorOnSurface</item>
84        <item name="android:textSize">20sp</item>
85        <item name="fontFamily">@string/config_fontFamilyMedium</item>
86    </style>
87
88    <style name="MaterialButton" parent="@style/Widget.MaterialComponents.Button.UnelevatedButton">
89        <item name="android:textAppearance">@style/MaterialButtonTextAppearance</item>
90    </style>
91
92    <style name="MaterialOutlinedButton" parent="@style/Widget.MaterialComponents.Button.OutlinedButton">
93        <item name="android:textAppearance">@style/MaterialButtonTextAppearance</item>
94    </style>
95
96    <style name="DialogTextButton" parent="@style/Widget.MaterialComponents.Button.TextButton.Dialog">
97        <item name="android:textAppearance">@style/MaterialButtonTextAppearance</item>
98        <item name="android:textColor">?android:attr/colorAccent</item>
99    </style>
100
101    <style name="EmptyStateButton" parent="@style/Widget.MaterialComponents.Button.TextButton">
102        <item name="android:textAppearance">@style/EmptyStateButtonTextAppearance</item>
103    </style>
104
105    <style name="AlertDialogTheme" parent="@style/ThemeOverlay.AppCompat.Dialog.Alert">
106        <item name="buttonBarPositiveButtonStyle">@style/DialogTextButton</item>
107        <item name="buttonBarNegativeButtonStyle">@style/DialogTextButton</item>
108    </style>
109
110    <style name="MaterialAlertDialogStyle" parent="@style/MaterialAlertDialog.MaterialComponents">
111        <item name="backgroundInsetTop">12dp</item>
112        <item name="backgroundInsetBottom">12dp</item>
113    </style>
114
115    <style name="MaterialAlertDialogTheme" parent="@style/ThemeOverlay.MaterialComponents.MaterialAlertDialog.Centered">
116        <item name="android:dialogCornerRadius">@dimen/grid_item_radius</item>
117        <item name="alertDialogStyle">@style/MaterialAlertDialogStyle</item>
118        <item name="buttonBarPositiveButtonStyle">@style/DialogTextButton</item>
119        <item name="buttonBarNegativeButtonStyle">@style/DialogTextButton</item>
120        <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialogTitleStyle</item>
121    </style>
122</resources>
123