1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<resources>
19
20    <style name="PreferenceThemeOverlayLeanbackBase" >
21        <!-- settings panel background color -->
22        <item name="android:windowBackground">@color/default_preference_window_background_legacy</item>
23
24        <!-- no accent color defined < v28: we use material default accent color -->
25
26        <!-- settings title panel background color -->
27        <item name="android:colorPrimary">@color/default_preference_brand_color_legacy</item>
28
29        <!-- text appearance for Settings panel main title, it by default reference titleTextColor for text color -->
30        <item name="android:titleTextAppearance">@style/TextAppearance.LeanbackPreference.Title</item>
31
32        <!-- text appearance for Settings panel 2nd title below main title, it by default reference subtitleTextColor for text color -->
33        <item name="android:subtitleTextAppearance">@style/TextAppearance.LeanbackPreference.SubTitle</item>
34
35        <!-- text appearance for item text, it by default reference textColorPrimary for text color -->
36        <item name="android:textAppearanceListItem">@style/TextAppearance.LeanbackPreference.ListItem</item>
37
38        <!-- text appearance for item second text, it by default reference textColorSecondary for text color -->
39        <item name="android:textAppearanceListItemSecondary">@style/TextAppearance.LeanbackPreference.ListItem.Secondary</item>
40
41        <!-- text appearance for category, it by default reference textColorTertiary text color -->
42        <item name="android:textAppearanceListItemSmall">@style/TextAppearance.LeanbackPreference.Category</item>
43
44        <!-- padding start for each item -->
45        <item name="android:listPreferredItemPaddingStart">@dimen/lb_preference_item_padding_start</item>
46
47        <!-- padding end for each item -->
48        <item name="android:listPreferredItemPaddingEnd">@dimen/lb_preference_item_padding_end</item>
49
50        <!-- color for item text -->
51        <item name="android:textColorPrimary">@color/lb_preference_item_primary_text_color</item>
52
53        <!-- color for item second text -->
54        <item name="android:textColorSecondary">@color/lb_preference_item_secondary_text_color</item>
55
56        <!-- color for category text by default is colorAccent -->
57        <item name="android:textColorTertiary">?android:attr/colorAccent</item>
58
59        <!-- style of window title TextView, customize margin, minHeight can be done here -->
60        <item name="android:titleTextStyle">@style/LeanbackPreference.Title</item>
61
62        <!-- style of subtitle for Dialog -->
63        <item name="android:subtitleTextStyle">@style/LeanbackPreference.SubTitle</item>
64
65        <!-- style of EditText for EditTextPreference -->
66        <item name="android:editTextStyle">@style/LeanbackPreference.EditText</item>
67
68        <!-- android:colorControlNormal is color of unchecked checkbox and radio, seekbar's track it is by default same as textColorPrimary -->
69        <item name="android:colorControlNormal">@color/lb_preference_item_primary_text_color_default</item>
70
71        <!-- android:colorControlActivated normally uses the "blue" colorAccent for checkbox, switch, seekbar, etc -->
72        <item name="android:colorControlActivated">?android:attr/colorAccent</item>
73
74        <!-- style for the icon-->
75        <item name="android:imageButtonStyle">@null</item>
76
77    </style>
78
79    <style name="PreferenceThemeOverlayLeanback" parent="PreferenceThemeOverlayLeanbackBase">
80        <item name="checkBoxPreferenceStyle">@style/LeanbackPreference.CheckBoxPreference</item>
81        <item name="dialogPreferenceStyle">@style/LeanbackPreference.DialogPreference</item>
82        <item name="dropdownPreferenceStyle">@style/Preference.DropDown</item>
83        <item name="editTextPreferenceStyle">@style/LeanbackPreference.DialogPreference.EditTextPreference</item>
84        <item name="preferenceCategoryStyle">@style/LeanbackPreference.Category</item>
85        <item name="preferenceFragmentCompatStyle">@style/PreferenceFragment.Leanback</item>
86        <item name="preferenceFragmentListStyle">@style/PreferenceFragmentList.Leanback</item>
87        <item name="preferenceFragmentStyle">@style/PreferenceFragment.Leanback</item>
88        <item name="preferenceInformationStyle">@style/LeanbackPreference.Information</item>
89        <item name="preferenceScreenStyle">@style/LeanbackPreference.PreferenceScreen</item>
90        <item name="preferenceStyle">@style/LeanbackPreference</item>
91        <item name="seekBarPreferenceStyle">@style/LeanbackPreference.SeekBarPreference</item>
92        <item name="switchPreferenceCompatStyle">@style/LeanbackPreference.SwitchPreferenceCompat</item>
93        <item name="switchPreferenceStyle">@style/LeanbackPreference.SwitchPreference</item>
94    </style>
95
96    <!-- Deprecated. Use PreferenceThemeOverlayLeanback instead. -->
97    <style name="PreferenceThemeOverlay.v14.Leanback" parent="PreferenceThemeOverlayLeanback"/>
98</resources>
99