themes.xml revision 947be6d588a70f92a384614406c8cf4a1e87f42c
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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    <!-- Themes in the "Theme.AppCompat" family will contain an action bar by default.
20         If Holo themes are available on the current platform version they will be used.
21         A limited Holo-styled action bar will be provided on platform versions older
22         than 3.0. (API 11)
23
24         These theme declarations contain any version-independent specification. Items
25         that need to vary based on platform version should be defined in the corresponding
26         "Theme.Base" theme. -->
27
28    <!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
29    <style name="Theme.AppCompat" parent="Base.Theme.AppCompat" />
30
31    <!-- Platform-independent theme providing an action bar in a light-themed activity. -->
32    <style name="Theme.AppCompat.Light" parent="Base.Theme.AppCompat.Light" />
33
34    <!-- Platform-independent theme providing an action bar in a dark-themed activity. -->
35    <style name="Theme.AppCompat.Light.DarkActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar" />
36
37    <style name="Theme.AppCompat.NoActionBar">
38        <item name="windowActionBar">false</item>
39        <item name="android:windowNoTitle">true</item>
40    </style>
41
42    <style name="Theme.AppCompat.Light.NoActionBar">
43        <item name="windowActionBar">false</item>
44        <item name="android:windowNoTitle">true</item>
45    </style>
46
47    <style name="Theme.AppCompat.DialogWhenLarge"
48           parent="Base.Theme.AppCompat.DialogWhenLarge">
49    </style>
50
51    <style name="Theme.AppCompat.Light.DialogWhenLarge"
52           parent="Base.Theme.AppCompat.Light.DialogWhenLarge">
53    </style>
54
55    <style name="Theme.AppCompat.Dialog" parent="Base.Theme.AppCompat.Dialog" />
56
57    <style name="Theme.AppCompat.Light.Dialog" parent="Base.Theme.AppCompat.Light.Dialog" />
58
59    <!-- Menu/item attributes -->
60    <style name="Theme.AppCompat.CompactMenu"
61           parent="Base.Theme.AppCompat.CompactMenu">
62    </style>
63
64    <style name="ThemeOverlay.AppCompat" parent="Base.ThemeOverlay.AppCompat" />
65
66    <!-- Theme overlay that replaces colors with their light versions but preserves
67         the value of colorAccent, colorPrimary and its variants. -->
68    <style name="ThemeOverlay.AppCompat.Light" parent="Base.ThemeOverlay.AppCompat.Light" />
69
70    <!-- Theme overlay that replaces colors with their dark versions but preserves
71         the value of colorAccent, colorPrimary and its variants. -->
72    <style name="ThemeOverlay.AppCompat.Dark" parent="Base.ThemeOverlay.AppCompat.Dark" />
73
74    <!-- Theme overlay that replaces the normal control color, which by default is the same as the
75         secondary text color, with the primary text color. -->
76    <style name="ThemeOverlay.AppCompat.ActionBar" parent="Base.ThemeOverlay.AppCompat.ActionBar" />
77
78    <!-- Theme overlay that replaces colors with their dark versions and replaces the normal
79         control color, which by default is the same as the secondary text color, with the primary
80         text color. -->
81    <style name="ThemeOverlay.AppCompat.Dark.ActionBar" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar" />
82
83</resources>
84