1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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<resources xmlns:android="http://schemas.android.com/apk/res/android">
17    <attr name="wifi_signal_color" format="reference" />
18    <attr name="wps_color" format="reference" />
19
20    <style name="SettingsStyle.TextAppearanceMedium" parent="@android:style/TextAppearance.Holo.Medium">
21        <item name="android:textSize">14sp</item>
22        <item name="android:fontFamily">@string/font_sans_serif_light</item>
23    </style>
24
25    <style name="SettingsStyle.TextAppearanceLarge" parent="@android:style/TextAppearance.Holo.Large">
26        <item name="android:textSize">34sp</item>
27        <item name="android:fontFamily">@string/font_sans_serif_light</item>
28    </style>
29
30    <style name="SettingsWindowAnimationStyle" parent="@android:style/Animation.Activity">
31        <item name="android:fragmentOpenEnterAnimation">@anim/setup_fragment_open_in</item>
32        <item name="android:fragmentOpenExitAnimation">@anim/setup_fragment_open_out</item>
33        <item name="android:fragmentCloseEnterAnimation">@anim/setup_fragment_close_in</item>
34        <item name="android:fragmentCloseExitAnimation">@anim/setup_fragment_close_out</item>
35    </style>
36
37    <style name="SetupWindowAnimationStyle" parent="SettingsWindowAnimationStyle">
38        <item name="android:activityCloseExitAnimation">@null</item>
39    </style>
40
41    <!-- The primary theme used in AndroidManifest allowing overlay. -->
42    <style name="TvSettingsActivityTheme" parent="Theme.Settings.Transparent" />
43
44    <!-- Default Settings theme -->
45    <style name="Theme.Settings" parent="@style/Theme.Leanback">
46        <item name="android:windowBackground">@color/settings_background</item>
47        <item name="android:colorBackgroundCacheHint">@null</item>
48        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
49        <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Leanback</item>
50        <item name="wifi_signal">@drawable/wifi_signal</item>
51        <item name="wifi_signal_color">?android:attr/colorAccent</item>
52        <item name="wifi_friction">@drawable/wifi_friction</item>
53        <item name="wps_color">@color/normal</item>
54    </style>
55
56    <!-- Settings theme for connectivity -->
57    <style name="Theme.SettingsConnectivity" parent="@style/Theme.Settings">
58        <item name="guidedStepTheme">@style/GuidedStepFragmentThemeTwoPanel</item>
59    </style>
60
61    <!-- Settings theme for device name -->
62    <style name="Theme.SettingsDeviceName" parent="@style/Theme.Settings">
63        <item name="guidedStepTheme">@style/GuidedStepFragmentThemeTwoPanel</item>
64    </style>
65
66    <!-- Settings theme for ResetActivity -->
67    <style name="Theme.Reset" parent="@style/GuidedStepFragmentThemeTwoPanel">
68        <item name="android:windowBackground">@color/settings_background</item>
69    </style>
70
71    <style name="Theme.Setup" parent="@style/Theme.Settings">
72        <item name="wifi_signal_color">@color/setup_list_item</item>
73        <item name="wps_color">@color/setup_list_item</item>
74        <item name="android:windowBackground">@android:color/transparent</item>
75        <item name="android:windowAnimationStyle">@style/SetupWindowAnimationStyle</item>
76        <item name="android:windowShowWallpaper">true</item>
77        <item name="guidedStepTheme">@style/Theme.Setup.GuidedStep</item>
78    </style>
79
80    <style name="Theme.Setup.GuidedStep" parent="Theme.Leanback.GuidedStep">
81        <item name="guidedActionsElevation">0dip</item>
82        <item name="guidedActionsBackground">@null</item>
83        <item name="guidedActionItemContainerStyle">@style/Setup.GuidedActionItemContainer</item>
84        <item name="guidedActionItemContentStyle">@style/Setup.GuidedActionItemContent</item>
85        <item name="guidedActionItemTitleStyle">@style/Setup.GuidedActionItemTitle</item>
86        <item name="guidedActionsListStyle">@style/Setup.GuidedActionsListStyle</item>
87        <item name="guidedActionContentWidthWeight">@string/setup_actions_width_weight</item>
88        <item name="guidedActionsSelectorDrawable">@null</item>
89        <item name="guidedStepBackground">@null</item>
90        <item name="guidedActionItemIconStyle">@style/Setup.GuidedActionItemIcon</item>
91    </style>
92
93    <style name="Theme.Settings.Transparent">
94        <item name="android:windowBackground">@android:color/transparent</item>
95        <item name="android:windowIsTranslucent">true</item>
96        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
97        <item name="android:backgroundDimEnabled">true</item>
98        <item name="android:backgroundDimAmount">0.8</item>
99        <item name="android:alertDialogTheme">@style/TvSettingsDialog</item>
100    </style>
101
102    <style name="Theme.Settings.BluetoothPairing" parent="@style/SettingsStyle.TextAppearanceMedium">
103        <item name="android:textSize">@dimen/text_size_description</item>
104    </style>
105
106    <style name="BluetoothActionTitleStyle" parent="Widget.Leanback.GuidanceTitleStyle">
107        <item name="android:maxLines">3</item>
108    </style>
109
110    <style name="HintText">
111        <item name="android:fontFamily">@string/font_sans_serif_thin</item>
112        <item name="android:textColor">@color/add_accessory_hint_text_color</item>
113        <item name="android:textSize">16sp</item>
114    </style>
115
116    <style name="pin_dialog_animation" parent="@android:style/Animation.Activity">
117        <item name="android:windowEnterAnimation">@anim/pin_dialog_enter</item>
118        <item name="android:windowExitAnimation">@anim/pin_dialog_exit</item>
119    </style>
120
121    <style name="Canvas" />
122
123    <style name="Canvas.Text" />
124
125    <style name="Canvas.Text.Dialog" />
126
127    <style name="Canvas.Text.Dialog.Content" />
128
129    <style name="Canvas.Text.Dialog.Content.Title">
130        <item name="android:fontFamily">@string/font_sans_serif_light</item>
131        <item name="android:paddingBottom">@dimen/content_fragment_title_text_bottom_padding</item>
132        <item name="android:paddingTop">@dimen/content_fragment_title_text_top_padding</item>
133        <item name="android:textColor">@color/content_title_text_color</item>
134        <item name="android:textSize">@dimen/content_fragment_title_text_size</item>
135    </style>
136
137    <style name="Canvas.Text.Dialog.Content.Breadcrumb">
138        <item name="android:fontFamily">@string/font_sans_serif_condensed</item>
139        <item name="android:textColor">@color/content_breadcrumb_text_color</item>
140        <item name="android:textSize">@dimen/content_fragment_breadcrumb_text_size</item>
141    </style>
142
143    <style name="Canvas.Text.Dialog.Content.Description">
144        <item name="android:fontFamily">@string/font_sans_serif</item>
145        <item name="android:gravity">end</item>
146        <item name="android:textColor">@color/content_description_text_color</item>
147        <item name="android:textSize">@dimen/content_fragment_description_text_size</item>
148        <item name="android:lineSpacingExtra">3dp</item>
149    </style>
150
151    <style name="Canvas.Text.Dialog.List" />
152
153    <style name="Canvas.Image.Dialog.List.Checkmark">
154        <item name="android:scaleType">center</item>
155        <item name="android:src">@drawable/list_item_checkmark</item>
156        <item name="android:visibility">invisible</item>
157    </style>
158
159    <style name="Canvas.Text.Dialog.List.Title">
160        <item name="android:fontFamily">@string/font_sans_serif_condensed</item>
161        <item name="android:alpha">@dimen/list_item_unselected_text_alpha</item>
162        <item name="android:textSize">@dimen/list_item_title_font_size</item>
163        <item name="android:textColor">@color/list_item_unselected_text_color</item>
164    </style>
165
166    <style name="Canvas.Text.Dialog.List.Description">
167        <item name="android:fontFamily">@string/font_sans_serif_condensed</item>
168        <item name="android:alpha">@dimen/list_item_unselected_text_alpha</item>
169        <item name="android:textSize">@dimen/list_item_description_font_size</item>
170        <item name="android:textColor">@color/list_item_unselected_text_color</item>
171        <item name="android:visibility">gone</item>
172    </style>
173
174    <style name="Canvas.Image" />
175
176    <style name="Canvas.Image.Dialog" />
177
178    <style name="Canvas.Image.Dialog.Content" />
179
180    <style name="Canvas.Image.Dialog.Content.Icon">
181        <item name="android:maxHeight">@dimen/content_fragment_max_icon_height</item>
182        <item name="android:scaleType">center</item>
183        <item name="android:src">@drawable/content_fragment_default_icon</item>
184    </style>
185
186    <style name="Canvas.Image.Dialog.List" />
187
188    <style name="Canvas.Image.Dialog.List.Icon">
189        <item name="android:scaleType">center</item>
190        <item name="android:visibility">gone</item>
191    </style>
192
193    <style name="SyncSwitchPreference" parent="LeanbackPreference">
194        <item name="android:widgetLayout">@layout/preference_widget_sync_toggle</item>
195    </style>
196
197    <style name="Setup" />
198
199    <style name="Setup.Description" />
200
201    <style name="Setup.Action" />
202
203    <style name="Setup.Description.Title">
204        <item name="android:fontFamily">@string/font_sans_serif_light</item>
205        <item name="android:textColor">?android:attr/textColorPrimary</item>
206        <item name="android:textSize">36sp</item>
207    </style>
208
209    <style name="Setup.Description.Description">
210        <item name="android:fontFamily">@string/font_sans_serif</item>
211        <item name="android:textSize">@dimen/setup_description_text_size</item>
212        <item name="android:textColor">?android:attr/textColorPrimary</item>
213    </style>
214
215    <style name="Setup.Action.ListItem">
216        <item name="android:fontFamily">@string/font_sans_serif_condensed</item>
217        <item name="android:textColor">@color/setup_list_item</item>
218        <item name="android:textSize">@dimen/setup_list_item_text_size</item>
219    </style>
220
221    <style name="Setup.Action.TextInput">
222        <item name="android:fontFamily">@string/font_sans_serif_condensed</item>
223        <item name="android:background">@drawable/setup_text_input_underline</item>
224        <item name="android:textCursorDrawable">@drawable/setup_text_input_cursor</item>
225        <item name="android:textColor">@color/setup_list_item_focused</item>
226        <item name="android:textSize">@dimen/setup_list_item_text_size</item>
227    </style>
228
229    <style name="Setup.ProgressTitle">
230        <item name="android:fontFamily">@string/font_sans_serif_light</item>
231        <item name="android:textColor">@color/activity_progress_text</item>
232        <item name="android:textSize">@dimen/activity_progress_title_text_size</item>
233    </style>
234
235    <style name="Setup.GuidedActionsListStyle" parent="@style/Widget.Leanback.GuidedActionsListStyle">
236        <item name="android:layout_width">@dimen/setup_scroll_list_width</item>
237        <item name="android:layout_height">match_parent</item>
238        <item name="android:layout_alignParentStart">true</item>
239        <item name="android:layout_alignParentTop">true</item>
240        <item name="android:paddingStart">0dp</item>
241        <item name="android:paddingEnd">0dp</item>
242        <item name="android:paddingTop">@dimen/setup_action_vertical_offset</item>
243        <item name="android:paddingBottom">@dimen/setup_action_vertical_offset_bottom</item>
244        <item name="android:clipToPadding">false</item>
245    </style>
246
247    <style name="Setup.GuidedActionItemContainer" parent="@style/Widget.Leanback.GuidedActionItemContainerStyle">
248        <item name="android:layout_gravity">start</item>
249        <item name="android:layout_width">match_parent</item>
250        <item name="android:layout_height">@dimen/setup_list_item_height</item>
251        <item name="android:background">@drawable/setup_list_item_background</item>
252        <item name="android:paddingTop">0dp</item>
253        <item name="android:paddingBottom">0dp</item>
254        <item name="android:paddingStart">@dimen/setup_list_item_padding</item>
255        <item name="android:paddingEnd">@dimen/setup_list_item_padding</item>
256        <item name="android:clipToPadding">false</item>
257        <item name="android:clipChildren">false</item>
258        <item name="android:minHeight">0dp</item>
259    </style>
260
261    <style name="Setup.GuidedActionItemContent" parent="@style/Widget.Leanback.GuidedActionItemContentStyle">
262        <item name="android:layout_gravity">start|center_vertical</item>
263        <item name="android:layout_height">wrap_content</item>
264        <item name="android:layout_width">match_parent</item>
265        <item name="android:duplicateParentState">true</item>
266        <item name="android:elevation">@dimen/setup_elevation</item>
267        <item name="android:paddingStart">0dp</item>
268        <item name="android:paddingEnd">0dp</item>
269    </style>
270
271    <style name="Setup.GuidedActionItemTitle" parent="@style/Widget.Leanback.GuidedActionItemTitleStyle">
272        <item name="android:duplicateParentState">true</item>
273        <item name="android:layout_height">wrap_content</item>
274        <item name="android:layout_width">match_parent</item>
275        <item name="android:focusable">true</item>
276        <item name="android:focusableInTouchMode">true</item>
277        <item name="android:gravity">start|center_vertical</item>
278        <item name="android:layout_gravity">start|center_vertical</item>
279        <item name="android:singleLine">true</item>
280        <item name="android:fontFamily">@string/font_sans_serif_condensed</item>
281        <item name="android:textSize">@dimen/setup_list_item_text_size</item>
282        <item name="android:textColor">@color/setup_list_item</item>
283    </style>
284
285    <style name="Setup.GuidanceContainerStyle" parent="Widget.Leanback.GuidanceContainerStyle">
286        <item name="android:paddingStart">@dimen/setup_guidance_padding_start</item>
287        <item name="android:paddingEnd">@dimen/setup_guidance_padding_end</item>
288    </style>
289
290    <style name="Setup.GuidanceTitleStyle">
291        <item name="android:layout_width">match_parent</item>
292        <item name="android:layout_height">wrap_content</item>
293        <item name="android:gravity">start|bottom</item>
294        <item name="android:lineSpacingMultiplier">@dimen/setup_title_line_spacing_multiplier</item>
295        <item name="android:textAppearance">@style/Setup.Description.Title</item>
296    </style>
297
298    <style name="Setup.GuidanceDescriptionStyle">
299        <item name="android:textColor">@color/setup_primary_text_color</item>
300        <item name="android:fontFamily">@string/font_sans_serif</item>
301        <item name="android:textSize">@dimen/setup_description_text_size</item>
302    </style>
303
304    <style name="Setup.GuidedActionItemIcon" parent="@style/Widget.Leanback.GuidedActionItemIconStyle">
305        <item name="android:layout_marginEnd">16dp</item>
306    </style>
307
308    <style name="TextAppearance.DialogMessage"
309           parent="@*android:style/TextAppearance.DeviceDefault.Body1">
310        <item name="android:textSize">16sp</item>
311    </style>
312
313    <style name="GuidedActionsListStyleTwoPanel" parent="Widget.Leanback.GuidedActionsListStyle">
314        <item name="android:layout_width">@dimen/guided_actions_list_width_two_panel</item>
315        <item name="android:layout_height">match_parent</item>
316        <item name="android:layout_alignParentStart">true</item>
317        <item name="android:layout_alignParentTop">true</item>
318        <item name="android:verticalSpacing">@dimen/guided_actions_list_vertical_spacing_two_panel</item>
319        <item name="android:paddingStart">0dp</item>
320        <item name="android:paddingEnd">0dp</item>
321        <item name="android:paddingTop">@dimen/guided_actions_vertical_offset</item>
322        <item name="android:paddingBottom">@dimen/guided_actions_vertical_offset_bottom</item>
323        <item name="android:clipToPadding">false</item>
324    </style>
325
326    <style name="GuidedActionItemContainerStyleTwoPanel" parent="Widget.Leanback.GuidedActionItemContainerStyle">
327        <item name="android:background">@drawable/preference_item_background</item>
328        <item name="android:layout_gravity">start|top</item>
329        <item name="android:layout_width">match_parent</item>
330        <item name="android:layout_height">@dimen/guided_action_height_two_panel</item>
331        <item name="android:paddingTop">@dimen/guided_action_top_bottom_padding</item>
332        <item name="android:paddingBottom">@dimen/guided_action_top_bottom_padding</item>
333        <item name="android:paddingStart">@dimen/guided_action_start_end_padding</item>
334        <item name="android:paddingEnd">@dimen/guided_action_start_end_padding</item>
335        <item name="android:clipToPadding">false</item>
336        <item name="android:clipChildren">false</item>
337    </style>
338
339    <style name="GuidedActionItemContentStyle" parent="Widget.Leanback.GuidedActionItemContentStyle">
340        <item name="android:layout_height">wrap_content</item>
341        <item name="android:layout_width">match_parent</item>
342        <item name="android:layout_gravity">start|center_vertical</item>
343        <item name="android:duplicateParentState">true</item>
344        <item name="android:elevation">@dimen/guided_action_content_elevation</item>
345        <item name="android:paddingStart">0dp</item>
346        <item name="android:paddingEnd">0dp</item>
347    </style>
348
349    <style name="GuidedActionItemTitleStyle" parent="Widget.Leanback.GuidedActionItemTitleStyle">
350        <item name="android:duplicateParentState">true</item>
351        <item name="android:layout_height">wrap_content</item>
352        <item name="android:layout_width">match_parent</item>
353        <item name="android:focusable">true</item>
354        <item name="android:focusableInTouchMode">true</item>
355        <item name="android:inputType">textNoSuggestions</item>
356        <item name="android:gravity">start|center_vertical</item>
357        <item name="android:singleLine">true</item>
358        <item name="android:fontFamily">sans-serif-condensed</item>
359        <item name="android:textSize">@dimen/guided_action_text_size</item>
360        <item name="android:textColor">?android:attr/textColorPrimary</item>
361    </style>
362
363    <style name="GuidedActionItemTitleStyleTwoPanel" parent="Widget.Leanback.GuidedActionItemTitleStyle">
364        <item name="android:duplicateParentState">true</item>
365        <item name="android:layout_height">wrap_content</item>
366        <item name="android:layout_width">match_parent</item>
367        <item name="android:focusable">true</item>
368        <item name="android:focusableInTouchMode">true</item>
369        <item name="android:inputType">textNoSuggestions</item>
370        <item name="android:gravity">start|center_vertical</item>
371        <item name="android:singleLine">false</item>
372        <item name="android:maxLines">3</item>
373        <item name="android:fontFamily">@string/preference_category_text_font</item>
374        <item name="android:textSize">@dimen/guided_action_text_size_two_panel</item>
375        <item name="android:textColor">@color/tp_preference_item_primary_text_color_selector</item>
376    </style>
377
378    <style name="GuidedActionIconStyle" parent="@style/Widget.Leanback.GuidedActionItemIconStyle">
379        <item name="android:layout_width">@dimen/guided_action_icon_width</item>
380        <item name="android:layout_height">@dimen/guided_action_icon_height</item>
381        <item name="android:layout_gravity">center_vertical</item>
382        <item name="android:visibility">visible</item>
383        <item name="android:layout_marginEnd">@dimen/guided_action_icon_margin_end</item>
384    </style>
385
386    <style name="GuidedActionItemDescriptionStyleTwoPanel" parent="Widget.Leanback.GuidedActionItemDescriptionStyle">
387        <item name="android:fontFamily">sans-serif</item>
388        <item name="android:textColor">@color/tp_preference_item_secondary_text_color_selector</item>
389        <item name="android:textSize">@dimen/guided_action_description_text_size_two_panel</item>
390        <item name="android:duplicateParentState">true</item>
391        <item name="android:focusable">true</item>
392        <item name="android:focusableInTouchMode">true</item>
393    </style>
394
395    <style name="GuidedActionItemCheckmarkStyle" parent="Widget.Leanback.GuidedActionItemCheckmarkStyle">
396        <item name="android:visibility">gone</item>
397    </style>
398
399    <style name="GuidedActionItemChevronStyle" parent="Widget.Leanback.GuidedActionItemChevronStyle">
400        <item name="android:visibility">gone</item>
401    </style>
402
403    <style name="GuidanceContainerStyleTwoPanel">
404        <item name="android:layout_marginStart">@dimen/guidance_group_margin_start_two_panel</item>
405        <item name="android:layout_marginEnd">@dimen/guidance_group_margin_end_two_panel</item>
406    </style>
407
408    <style name="GuidanceTitleStyle">
409        <item name="android:gravity">start</item>
410        <item name="android:maxLines">4</item>
411        <item name="android:lineSpacingMultiplier">@dimen/setup_title_line_spacing_multiplier</item>
412        <item name="android:fontFamily">@string/font_sans_serif</item>
413        <item name="android:textColor">?android:attr/textColorPrimary</item>
414        <item name="android:textSize">36sp</item>
415
416    </style>
417
418    <style name="GuidanceDescriptionStyle">
419        <item name="android:gravity">start</item>
420        <item name="android:lineSpacingMultiplier">@dimen/setup_description_line_spacing_multiplier</item>
421        <item name="android:fontFamily">sans-serif</item>
422        <item name="android:textColor">?android:attr/textColorPrimary</item>
423        <item name="android:textSize">14sp</item>
424    </style>
425
426    <style name="GuidanceIconStyle">
427        <item name="android:layout_marginBottom">@dimen/guidance_icon_margin_bottom_two_panel</item>
428        <item name="android:layout_height">48dp</item>
429        <item name="android:layout_width">48dp</item>
430        <item name="android:visibility">visible</item>
431    </style>
432
433    <!-- Style for the palette textviews for accessibility color correction -->
434    <style name="ColorCorrectionPaletteTextViewStyle">
435        <item name="android:fontFamily">@string/font_sans_serif</item>
436        <item name="android:layout_height">0dp</item>
437        <item name="android:layout_weight">1</item>
438        <item name="android:layout_width">match_parent</item>
439        <item name="android:gravity">center_vertical</item>
440        <item name="android:textDirection">locale</item>
441        <item name="android:textAlignment">gravity</item>
442    </style>
443    <style name="TvSettingsDialog" parent="@android:style/Theme.Material.Dialog.Alert">
444        <item name="android:windowTitleStyle">@style/DialogWindowTitleStyle</item>
445    </style>
446
447    <style name="TvSettingsDialog.FullScreen" parent="@android:style/Theme.Material.Dialog.Alert">
448        <item name="android:windowNoTitle">true</item>
449        <item name="android:windowTitleStyle">@null</item>
450        <item name="android:windowIsFloating">false</item>
451        <item name="android:windowMinWidthMajor">@null</item>
452        <item name="android:windowMinWidthMinor">@null</item>
453        <item name="android:windowFullscreen">true</item>
454        <item name="android:windowBackground">@drawable/full_screen_dialog_background</item>
455        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
456        <item name="android:buttonBarButtonStyle">@style/TvSettingsDialog.FullScreen.Button</item>
457    </style>
458
459    <style name="TvSettingsDialog.FullScreen.Button" parent="@android:style/Widget.Button">
460        <item name="android:background">@drawable/dialog_button_background</item>
461        <item name="android:stateListAnimator">@animator/dialog_button_animator</item>
462        <item name="android:paddingHorizontal">20dp</item>
463        <item name="android:paddingVertical">10dp</item>
464        <item name="android:textAppearance">?android:attr/textAppearanceButton</item>
465        <item name="android:textAllCaps">false</item>
466        <item name="android:textColor">@color/dialog_button_text_color</item>
467        <item name="android:fontFamily">sans-serif-medium</item>
468        <item name="android:maxHeight">40dp</item>
469        <item name="android:minHeight">40dp</item>
470    </style>
471
472    <style name="DialogWindowTitleStyle">
473        <item name="android:textSize">36sp</item>
474        <item name="android:fontFamily">@string/preference_title_text_font</item>
475        <item name="android:textColor">?android:attr/textColorPrimary</item>
476    </style>
477</resources>
478