1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4* Copyright (C) 2021 The Android Open Source Project
5*
6* Licensed under the Apache License, Version 2.0 (the "License");
7* you may not use this file except in compliance with the License.
8* You may obtain a copy of the License at
9*
10*      http://www.apache.org/licenses/LICENSE-2.0
11*
12* Unless required by applicable law or agreed to in writing, software
13* distributed under the License is distributed on an "AS IS" BASIS,
14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15* See the License for the specific language governing permissions and
16* limitations under the License.
17*/
18-->
19
20<resources>
21
22    <style name="HomeSettings.Theme" parent="@android:style/Theme.DeviceDefault.Settings">
23        <item name="android:listPreferredItemPaddingEnd">16dp</item>
24        <item name="android:listPreferredItemPaddingStart">24dp</item>
25        <item name="android:navigationBarColor">@android:color/transparent</item>
26        <item name="android:statusBarColor">@android:color/transparent</item>
27        <item name="android:switchStyle">@style/SwitchStyle</item>
28        <item name="android:textAppearanceListItem">@style/HomeSettings.PreferenceTitle</item>
29        <item name="android:windowActionBar">false</item>
30        <item name="android:windowNoTitle">true</item>
31        <item name="preferenceTheme">@style/HomeSettings.PreferenceTheme</item>
32    </style>
33
34    <style name="HomeSettings.PreferenceTheme" parent="@style/PreferenceThemeOverlay">
35        <item name="preferenceCategoryStyle">@style/HomeSettings.CategoryStyle</item>
36        <item name="preferenceCategoryTitleTextAppearance">@style/HomeSettings.CategoryTitle</item>
37        <item name="preferenceFragmentCompatStyle">@style/HomeSettings.FragmentCompatStyle</item>
38        <item name="preferenceScreenStyle">@style/HomeSettings.PreferenceScreenStyle</item>
39        <item name="preferenceStyle">@style/HomeSettings.PreferenceStyle</item>
40        <item name="switchPreferenceStyle">@style/HomeSettings.SwitchPreferenceStyle</item>
41        <item name="android:fontFamily">google-sans-text</item>
42    </style>
43
44    <style name="HomeSettings.CategoryStyle" parent="@style/Preference.Category.Material">
45        <item name="allowDividerAbove">@bool/home_settings_allow_divider</item>
46        <item name="allowDividerBelow">@bool/home_settings_allow_divider</item>
47        <item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
48    </style>
49
50    <style name="HomeSettings.PreferenceStyle" parent="@style/Preference.Material">
51        <item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
52    </style>
53
54    <style name="HomeSettings.PreferenceScreenStyle"
55            parent="@style/Preference.PreferenceScreen.Material">
56        <item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
57    </style>
58
59    <style name="HomeSettings.SwitchPreferenceStyle"
60            parent="@style/Preference.SwitchPreference.Material">
61        <item name="iconSpaceReserved">@bool/home_settings_icon_space_reserved</item>
62    </style>
63
64    <style name="HomeSettings.PreferenceTitle"
65            parent="@android:style/TextAppearance.Material.Subhead">
66        <item name="android:fontFamily">google-sans</item>
67        <item name="android:textSize">20sp</item>
68    </style>
69
70    <style name="HomeSettings.CategoryTitle" parent="@android:style/TextAppearance.Material.Body2">
71        <item name="android:fontFamily">google-sans-text-medium</item>
72    </style>
73
74    <style name="HomeSettings.CollapsingToolbar" parent="@style/Theme.MaterialComponents.DayNight">
75        <item name="colorAccent">@color/home_settings_header_accent</item>
76        <item name="colorPrimary">@color/home_settings_header_expanded</item>
77        <item name="elevationOverlayColor">?attr/colorPrimary</item>
78        <item name="elevationOverlayEnabled">true</item>
79    </style>
80
81    <style name="HomeSettings.CollapsedToolbarTitle"
82            parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title">
83        <item name="android:fontFamily">google-sans</item>
84        <item name="android:textSize">20sp</item>
85    </style>
86
87    <style name="HomeSettings.ExpandedToolbarTitle" parent="HomeSettings.CollapsedToolbarTitle">
88        <item name="android:textSize">36sp</item>
89    </style>
90</resources>