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>
18    <!-- DocumentsTheme is allow customize by run time overlay -->
19    <style name="DocumentsTheme" parent="@android:style/Theme.DeviceDefault.DocumentsUI">
20
21        <item name="android:actionBarSize">@dimen/action_bar_size</item>
22        <item name="android:actionModeBackground">?android:attr/colorBackground</item>
23
24        <!-- Color section -->
25        <item name="android:colorAccent">@color/primary</item>
26        <item name="android:colorBackground">@android:color/white</item>
27        <item name="android:colorBackgroundFloating">@color/background_floating</item>
28        <item name="android:colorControlHighlight">@color/ripple_material_light</item>
29        <item name="android:colorControlActivated">@color/primary</item>
30        <item name="android:colorPrimary">@color/primary</item>
31        <item name="android:colorSecondary">@color/secondary</item>
32        <item name="android:strokeColor">@color/hairline</item>
33
34        <!-- System | Widget section -->
35        <item name="android:listDivider">@drawable/list_divider</item>
36        <item name="android:statusBarColor">?android:colorBackground</item>
37        <item name="android:navigationBarColor">?android:colorBackground</item>
38        <item name="android:windowBackground">?android:colorBackground</item>
39        <item name="android:windowLightStatusBar">true</item>
40        <item name="android:windowLightNavigationBar">true</item>
41        <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item>
42
43        <!-- OEM should not overlay this attr -->
44        <item name="android:windowNoTitle">true</item>
45
46    </style>
47
48    <style name="DocumentsDefaultTheme" parent="@style/Theme.MaterialComponents.DayNight.NoActionBar">
49
50        <!-- This only used by support lib, not allow to overlay -->
51        <item name="windowActionBar">false</item>
52        <item name="windowActionModeOverlay">true</item>
53
54        <!-- For material design widget, chips, buttons, not support attr-->
55        <item name="colorPrimary">@color/primary</item>
56        <item name="colorAccent">@color/primary</item>
57
58        <!-- TODO need to solve the error handle in GridItemThumbnail -->
59        <item name="gridItemTint">@color/item_doc_grid_tint</item>
60
61        <item name="actionBarTheme">@style/ActionBarTheme</item>
62        <item name="actionModeStyle">@style/ActionModeStyle</item>
63        <item name="actionOverflowButtonStyle">@style/OverflowButtonStyle</item>
64        <item name="actionOverflowMenuStyle">@style/OverflowMenuStyle</item>
65        <item name="alertDialogTheme">@style/AlertDialogTheme</item>
66        <item name="autoCompleteTextViewStyle">@style/AutoCompleteTextViewStyle</item>
67        <item name="bottomSheetDialogTheme">@style/BottomSheetDialogStyle</item>
68        <item name="materialButtonStyle">@style/MaterialButton</item>
69        <item name="materialButtonOutlinedStyle">@style/MaterialOutlinedButton</item>
70        <item name="materialCardViewStyle">@style/CardViewStyle</item>
71        <item name="materialAlertDialogTheme">@style/MaterialAlertDialogTheme</item>
72        <item name="queryBackground">@color/menu_search_background</item>
73        <item name="snackbarButtonStyle">@style/SnackbarButtonStyle</item>
74    </style>
75</resources>
76