<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<!-- The collection of resources for theming the appearance of a device -->
<!-- TODO: Resolving resource overlay for Q module updates. Remove when public.xml is
    removed from DocumentsUIGoogle.
    Add a new entry to DocumentsUIGoogle public.xml when adding new resource here.
    Follow these steps to identify a new resource id for the resource.
    1. Find last resource id for the particular type.
       bool, string, etc.
       Example: <public type="bool" name="pre_existing_bool" id="0x7f04001a" />
       bool last resource id is 0x7f04001a
       First  6 characters are an identifier for bool, so the id should be
       0x7f04xxxx where xxxx is 001a+1 = 001b.
    4. Add entry to public.xml
       Example: <public type="bool" name="new_bool_config" id="0x7f04001b" />
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <overlayable name="DocumentsUICustomization">

        <!-- START VENDOR CUSTOMIZATION -->
        <policy type="product|system|vendor">
            <!-- START THEME / STYLE -->
            <!-- When force_material3 is true, overriding this section won't work. -->
            <item type="style" name="DocumentsTheme"/>
            <!-- END THEME / STYLE -->

            <!-- START COLOR -->
            <!-- When force_material3 is true, overriding "color_surface_header" and
                 "list_item_selected_background_color" won't work.
            -->
            <item type="color" name="color_surface_header"/>
            <item type="color" name="list_item_selected_background_color"/>
            <item type="color" name="primary"/>
            <!-- END COLOR -->

            <!-- START DIMEN -->
            <!-- When force_material3 is true, overriding this section won't work. -->
            <item type="dimen" name="grid_item_radius"/>
            <item type="dimen" name="search_chip_radius"/>
            <!-- END DIMEN -->

            <!-- START DRAWABLE -->
            <!-- TODO(b/428096297): Update these icons when force_material3 is true by default.
                 The following icons are still using the old SVGs (no "_m3" counterparts) to make
                 sure it doesn't break OEM if they override them in their RRO.
            -->
            <item type="drawable" name="ic_advanced_shortcut"/>
            <item type="drawable" name="ic_eject"/>
            <item type="drawable" name="ic_root_download"/>
            <item type="drawable" name="ic_root_smartphone"/>
            <item type="drawable" name="ic_sd_storage"/>
            <!-- When force_material3 is true, overriding "root_list_selector" won't work. -->
            <item type="drawable" name="root_list_selector"/>
            <!-- END DRAWABLE -->

            <!-- START BOOLEAN CONFIG -->
            <item type="bool" name="config_button_all_caps"/>
            <item type="bool" name="config_default_show_device_root"/>
            <item type="bool" name="force_material3"/>
            <item type="bool" name="handle_view_downloads_intent"/>
            <item type="bool" name="is_launcher_enabled"/>
            <item type="bool" name="show_apps_row"/>
            <item type="bool" name="show_media_roots"/>
            <item type="bool" name="show_search_bar"/>
            <item type="bool" name="show_picker_cancel_button"/>
            <item type="bool" name="move_search_chip_when_selected"/>
            <!-- END BOOLEAN CONFIG -->

            <!-- START STRING CONFIG -->
            <item type="string" name="config_fontFamily"/>
            <item type="string" name="config_fontFamilyMedium"/>
            <item type="string" name="config_headerFontFamily"/>
            <item type="string" name="config_headerFontFamilyMedium"/>
            <item type="string" name="default_root_uri"/>
            <item type="string" name="preferred_root_package"/>
            <item type="string" name="trusted_quick_viewer_package"/>
            <!-- END STRING CONFIG -->

        </policy>
        <!-- END VENDOR CUSTOMIZATION -->

    </overlayable>

</resources>
