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
19    <!--
20        Theme in the "Platform.AppCompat" family are designed to be aliases for the default
21        theme on a given platform version and should set up the default theme ready for adding our
22        unbundled Action Bar.
23    -->
24    <eat-comment/>
25
26    <style name="Platform.AppCompat" parent="Platform.V11.AppCompat" />
27    <style name="Platform.AppCompat.Light" parent="Platform.V11.AppCompat.Light" />
28
29    <style name="Platform.V11.AppCompat" parent="android:Theme.Holo">
30        <item name="android:windowNoTitle">true</item>
31        <item name="android:windowActionBar">false</item>
32
33        <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
34        <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
35        <item name="android:borderlessButtonStyle">?attr/borderlessButtonStyle</item>
36
37        <!-- Window colors -->
38        <item name="android:colorForeground">@color/foreground_material_dark</item>
39        <item name="android:colorForegroundInverse">@color/foreground_material_light</item>
40        <item name="android:colorBackground">@color/background_material_dark</item>
41        <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_dark</item>
42        <item name="android:disabledAlpha">@dimen/abc_disabled_alpha_material_dark</item>
43        <item name="android:backgroundDimAmount">0.6</item>
44        <item name="android:windowBackground">@color/background_material_dark</item>
45
46        <!-- Text colors -->
47        <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>
48        <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item>
49        <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
50        <item name="android:textColorSecondary">@color/abc_secondary_text_material_dark</item>
51        <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_light</item>
52        <item name="android:textColorTertiary">@color/abc_secondary_text_material_dark</item>
53        <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_light</item>
54        <item name="android:textColorHint">@color/abc_hint_foreground_material_dark</item>
55        <item name="android:textColorHintInverse">@color/abc_hint_foreground_material_light</item>
56        <item name="android:textColorHighlight">@color/highlighted_text_material_dark</item>
57        <item name="android:textColorHighlightInverse">@color/highlighted_text_material_light</item>
58        <item name="android:textColorLink">?attr/colorAccent</item>
59        <item name="android:textColorLinkInverse">?attr/colorAccent</item>
60        <item name="android:textColorAlertDialogListItem">@color/abc_primary_text_material_dark</item>
61
62        <!-- Text styles -->
63        <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
64        <item name="android:textAppearanceInverse">@style/TextAppearance.AppCompat.Inverse</item>
65        <item name="android:textAppearanceLarge">@style/TextAppearance.AppCompat.Large</item>
66        <item name="android:textAppearanceLargeInverse">@style/TextAppearance.AppCompat.Large.Inverse</item>
67        <item name="android:textAppearanceMedium">@style/TextAppearance.AppCompat.Medium</item>
68        <item name="android:textAppearanceMediumInverse">@style/TextAppearance.AppCompat.Medium.Inverse</item>
69        <item name="android:textAppearanceSmall">@style/TextAppearance.AppCompat.Small</item>
70        <item name="android:textAppearanceSmallInverse">@style/TextAppearance.AppCompat.Small.Inverse</item>
71
72        <item name="android:listChoiceIndicatorSingle">@drawable/abc_btn_radio_material</item>
73        <item name="android:listChoiceIndicatorMultiple">@drawable/abc_btn_check_material</item>
74
75        <item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
76        <item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
77        <item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
78
79        <item name="android:textSelectHandle">@drawable/abc_text_select_handle_middle_mtrl_dark</item>
80        <item name="android:textSelectHandleLeft">@drawable/abc_text_select_handle_left_mtrl_dark</item>
81        <item name="android:textSelectHandleRight">@drawable/abc_text_select_handle_right_mtrl_dark</item>
82    </style>
83
84    <style name="Platform.V11.AppCompat.Light" parent="android:Theme.Holo.Light">
85        <item name="android:windowNoTitle">true</item>
86        <item name="android:windowActionBar">false</item>
87
88        <item name="android:buttonBarStyle">?attr/buttonBarStyle</item>
89        <item name="android:buttonBarButtonStyle">?attr/buttonBarButtonStyle</item>
90        <item name="android:borderlessButtonStyle">?attr/borderlessButtonStyle</item>
91
92        <!-- Window colors -->
93        <item name="android:colorForeground">@color/foreground_material_light</item>
94        <item name="android:colorForegroundInverse">@color/foreground_material_dark</item>
95        <item name="android:colorBackground">@color/background_material_light</item>
96        <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_light</item>
97        <item name="android:disabledAlpha">@dimen/abc_disabled_alpha_material_light</item>
98        <item name="android:backgroundDimAmount">0.6</item>
99        <item name="android:windowBackground">@color/background_material_light</item>
100
101        <!-- Text colors -->
102        <item name="android:textColorPrimary">@color/abc_primary_text_material_light</item>
103        <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_dark</item>
104        <item name="android:textColorSecondary">@color/abc_secondary_text_material_light</item>
105        <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_dark</item>
106        <item name="android:textColorTertiary">@color/abc_secondary_text_material_light</item>
107        <item name="android:textColorTertiaryInverse">@color/abc_secondary_text_material_dark</item>
108        <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_light</item>
109        <item name="android:textColorPrimaryInverseDisableOnly">@color/abc_primary_text_disable_only_material_dark</item>
110        <item name="android:textColorHint">@color/abc_hint_foreground_material_light</item>
111        <item name="android:textColorHintInverse">@color/abc_hint_foreground_material_dark</item>
112        <item name="android:textColorHighlight">@color/highlighted_text_material_light</item>
113        <item name="android:textColorHighlightInverse">@color/highlighted_text_material_dark</item>
114        <item name="android:textColorLink">?attr/colorAccent</item>
115        <item name="android:textColorLinkInverse">?attr/colorAccent</item>
116        <item name="android:textColorAlertDialogListItem">@color/abc_primary_text_material_light</item>
117
118        <!-- Text styles -->
119        <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
120        <item name="android:textAppearanceInverse">@style/TextAppearance.AppCompat.Inverse</item>
121        <item name="android:textAppearanceLarge">@style/TextAppearance.AppCompat.Large</item>
122        <item name="android:textAppearanceLargeInverse">@style/TextAppearance.AppCompat.Large.Inverse</item>
123        <item name="android:textAppearanceMedium">@style/TextAppearance.AppCompat.Medium</item>
124        <item name="android:textAppearanceMediumInverse">@style/TextAppearance.AppCompat.Medium.Inverse</item>
125        <item name="android:textAppearanceSmall">@style/TextAppearance.AppCompat.Small</item>
126        <item name="android:textAppearanceSmallInverse">@style/TextAppearance.AppCompat.Small.Inverse</item>
127
128        <item name="android:listChoiceIndicatorSingle">@drawable/abc_btn_radio_material</item>
129        <item name="android:listChoiceIndicatorMultiple">@drawable/abc_btn_check_material</item>
130
131        <item name="android:actionModeCutDrawable">?actionModeCutDrawable</item>
132        <item name="android:actionModeCopyDrawable">?actionModeCopyDrawable</item>
133        <item name="android:actionModePasteDrawable">?actionModePasteDrawable</item>
134
135        <item name="android:textSelectHandle">@drawable/abc_text_select_handle_middle_mtrl_light</item>
136        <item name="android:textSelectHandleLeft">@drawable/abc_text_select_handle_left_mtrl_light</item>
137        <item name="android:textSelectHandleRight">@drawable/abc_text_select_handle_right_mtrl_light</item>
138    </style>
139
140    <style name="Base.V11.Theme.AppCompat.Dialog" parent="Base.V7.Theme.AppCompat.Dialog">
141        <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
142        <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
143        <item name="android:windowCloseOnTouchOutside">@bool/abc_config_closeDialogWhenTouchOutside</item>
144    </style>
145
146    <style name="Base.V11.Theme.AppCompat.Light.Dialog" parent="Base.V7.Theme.AppCompat.Light.Dialog">
147        <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
148        <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
149        <item name="android:windowCloseOnTouchOutside">@bool/abc_config_closeDialogWhenTouchOutside</item>
150    </style>
151
152    <style name="Base.Theme.AppCompat.Dialog" parent="Base.V11.Theme.AppCompat.Dialog" />
153    <style name="Base.Theme.AppCompat.Light.Dialog" parent="Base.V11.Theme.AppCompat.Light.Dialog" />
154
155    <style name="Base.V11.ThemeOverlay.AppCompat.Dialog" parent="Base.V7.ThemeOverlay.AppCompat.Dialog">
156        <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
157        <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
158        <item name="android:windowCloseOnTouchOutside">@bool/abc_config_closeDialogWhenTouchOutside</item>
159    </style>
160
161    <style name="Base.ThemeOverlay.AppCompat.Dialog" parent="Base.V11.ThemeOverlay.AppCompat.Dialog" />
162
163    <style name="Base.ThemeOverlay.AppCompat.Dialog.Alert">
164        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
165        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
166    </style>
167
168    <style name="Base.Theme.AppCompat.Dialog.Alert">
169        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
170        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
171    </style>
172
173    <style name="Base.Theme.AppCompat.Light.Dialog.Alert">
174        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
175        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
176    </style>
177
178    <style name="Base.Theme.AppCompat.Dialog.MinWidth">
179        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
180        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
181    </style>
182
183    <style name="Base.Theme.AppCompat.Light.Dialog.MinWidth">
184        <item name="android:windowMinWidthMajor">@dimen/abc_dialog_min_width_major</item>
185        <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item>
186    </style>
187
188</resources>
189