• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2017 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<!-- TODO(yukl): Bump this file to v28 once we can properly test that -->
19<!-- These styles are only included in the platform build, to make sure that they do not
20     override the corresponding styles in the compatibility build. -->
21<resources xmlns:tools="http://schemas.android.com/tools">
22
23    <!-- General styles -->
24
25    <!-- These themes should only be used in platform builds because support libraries'
26         FragmentActivity and AppCompatActivity expects the activity theme to inherit from
27         Theme.AppCompat. -->
28    <style name="SuwThemeMaterial" parent="android:Theme.Material.NoActionBar">
29        <item name="android:colorAccent">@color/suw_color_accent_dark</item>
30        <item name="android:colorBackground">@color/suw_color_background_dark</item>
31        <item name="android:indeterminateTint">@color/suw_progress_bar_color_dark</item>
32        <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
33        <item name="android:indeterminateTintMode">src_in</item>
34        <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
35        <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item>
36        <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item>
37        <item name="android:navigationBarColor">@android:color/black</item>
38        <item name="android:statusBarColor">@android:color/black</item>
39        <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item>
40        <item name="android:textColorLink">@color/suw_link_color_dark</item>
41        <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
42        <item name="android:windowDisablePreview">true</item>
43        <item name="android:windowSoftInputMode">adjustResize</item>
44
45        <item name="suwButtonAllCaps">true</item>
46        <item name="suwButtonFontFamily">sans-serif</item>
47        <item name="suwButtonHighlightAlpha">0.24</item>
48        <item name="suwCardBackground">@drawable/suw_card_bg</item>
49        <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item>
50        <item name="suwDividerInsetEnd">0dp</item>
51        <item name="suwDividerInsetStart">@dimen/suw_items_icon_divider_inset</item>
52        <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_text_divider_inset</item>
53        <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item>
54        <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle</item>
55        <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item>
56        <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item>
57        <item name="suwNavBarTheme">@style/SuwNavBarThemeDark</item>
58    </style>
59
60    <style name="SuwThemeMaterial.Light" parent="android:Theme.Material.Light.NoActionBar">
61        <item name="android:colorAccent">@color/suw_color_accent_light</item>
62        <item name="android:colorBackground">@color/suw_color_background_light</item>
63        <item name="android:indeterminateTint">@color/suw_progress_bar_color_light</item>
64        <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
65        <item name="android:indeterminateTintMode">src_in</item>
66        <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
67        <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item>
68        <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item>
69        <item name="android:navigationBarColor">@android:color/black</item>
70        <item name="android:statusBarColor">@android:color/black</item>
71        <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item>
72        <item name="android:textColorLink">@color/suw_link_color_light</item>
73        <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
74        <item name="android:windowDisablePreview">true</item>
75        <item name="android:windowSoftInputMode">adjustResize</item>
76
77        <item name="suwButtonAllCaps">true</item>
78        <item name="suwButtonFontFamily">sans-serif</item>
79        <item name="suwButtonHighlightAlpha">0.24</item>
80        <item name="suwCardBackground">@drawable/suw_card_bg</item>
81        <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item>
82        <item name="suwDividerInsetEnd">0dp</item>
83        <item name="suwDividerInsetStart">@dimen/suw_items_icon_divider_inset</item>
84        <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_text_divider_inset</item>
85        <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item>
86        <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle</item>
87        <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item>
88        <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item>
89        <item name="suwNavBarTheme">@style/SuwNavBarThemeLight</item>
90    </style>
91
92    <!-- Placeholder for GLIF dark theme, colors are not updated yet -->
93    <style name="SuwThemeGlif" parent="android:Theme.Material.NoActionBar">
94        <item name="android:colorAccent">@color/suw_color_accent_glif_dark</item>
95        <item name="android:colorBackground">@color/suw_glif_background_color_dark</item>
96        <item name="android:colorPrimary">?android:attr/colorAccent</item>
97        <item name="android:indeterminateTint">?android:attr/colorPrimary</item>
98        <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
99        <item name="android:indeterminateTintMode">src_in</item>
100        <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
101        <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item>
102        <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item>
103        <item name="android:navigationBarColor">@android:color/black</item>
104        <item name="android:statusBarColor">@android:color/transparent</item>
105        <item name="android:textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item>
106        <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item>
107        <item name="android:textColorLink">@color/suw_color_accent_glif_dark</item>
108        <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
109        <item name="android:windowDisablePreview">true</item>
110        <item name="android:windowSoftInputMode">adjustResize</item>
111
112        <item name="suwButtonAllCaps">true</item>
113        <item name="suwButtonCornerRadius">@dimen/suw_glif_button_corner_radius</item>
114        <item name="suwButtonFontFamily">sans-serif-medium</item>
115        <item name="suwButtonHighlightAlpha">0.24</item>
116        <item name="suwColorPrimary">?android:attr/colorPrimary</item>
117        <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item>
118        <item name="suwDividerInsetEnd">0dp</item>
119        <item name="suwDividerInsetStart">@dimen/suw_items_glif_icon_divider_inset</item>
120        <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_glif_text_divider_inset</item>
121        <item name="suwGlifHeaderGravity">start</item>
122        <item name="suwGlifIconStyle">@style/SuwGlifIcon</item>
123        <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item>
124        <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle.GlifDescription</item>
125        <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item>
126        <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item>
127        <item name="suwScrollIndicators">bottom</item>
128    </style>
129
130    <style name="SuwThemeGlif.Light" parent="android:Theme.Material.Light.NoActionBar">
131        <item name="android:colorAccent">@color/suw_color_accent_glif_light</item>
132        <item name="android:colorBackground">@color/suw_glif_background_color_light</item>
133        <item name="android:colorPrimary">?android:attr/colorAccent</item>
134        <item name="android:indeterminateTint">?android:attr/colorPrimary</item>
135        <!-- Specify the indeterminateTintMode to work around a bug in Lollipop -->
136        <item name="android:indeterminateTintMode">src_in</item>
137        <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item>
138        <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item>
139        <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item>
140        <item name="android:navigationBarColor">@android:color/black</item>
141        <item name="android:statusBarColor">@android:color/transparent</item>
142        <item name="android:textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item>
143        <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item>
144        <item name="android:textColorLink">@color/suw_color_accent_glif_light</item>
145        <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item>
146        <item name="android:windowDisablePreview">true</item>
147        <item name="android:windowSoftInputMode">adjustResize</item>
148
149        <item name="suwButtonAllCaps">true</item>
150        <item name="suwButtonCornerRadius">@dimen/suw_glif_button_corner_radius</item>
151        <item name="suwButtonFontFamily">sans-serif-medium</item>
152        <item name="suwButtonHighlightAlpha">0.12</item>
153        <item name="suwColorPrimary">?android:attr/colorPrimary</item>
154        <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item>
155        <item name="suwDividerInsetEnd">0dp</item>
156        <item name="suwDividerInsetStart">@dimen/suw_items_glif_icon_divider_inset</item>
157        <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_glif_text_divider_inset</item>
158        <item name="suwGlifHeaderGravity">start</item>
159        <item name="suwGlifIconStyle">@style/SuwGlifIcon</item>
160        <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item>
161        <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle.GlifDescription</item>
162        <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item>
163        <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item>
164        <item name="suwScrollIndicators">bottom</item>
165    </style>
166
167    <style name="SuwThemeGlifV3" parent="SuwThemeGlifV2">
168        <item name="android:colorAccent">@color/suw_color_accent_glif_v3</item>
169
170        <item name="suwButtonAllCaps">false</item>
171        <item name="suwButtonCornerRadius">@dimen/suw_glif_v3_button_corner_radius</item>
172        <item name="suwButtonFontFamily">@string/suwFontSecondaryMedium</item>
173    </style>
174
175    <style name="SuwThemeGlifV3.Light" parent="SuwThemeGlifV2.Light">
176        <item name="android:colorAccent">@color/suw_color_accent_glif_v3</item>
177        <item name="android:navigationBarColor">@color/suw_glif_v3_nav_bar_color_light</item>
178        <!-- Ignore NewApi: For some reason lint seems to think this API is new in v28 (b/73514594) -->
179        <item name="android:navigationBarDividerColor" tools:ignore="NewApi">@color/suw_glif_v3_nav_bar_divider_color_light</item>
180        <!-- Ignore NewApi: For some reason lint seems to think this API is new in v28 (b/73514594) -->
181        <item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item>
182
183        <item name="suwButtonAllCaps">false</item>
184        <item name="suwButtonCornerRadius">@dimen/suw_glif_v3_button_corner_radius</item>
185        <item name="suwButtonFontFamily">@string/suwFontSecondaryMedium</item>
186    </style>
187
188    <!-- Button styles -->
189
190    <style name="SuwGlifButton.Primary" parent="android:Widget.Material.Button.Colored">
191        <!-- This style can be applied to a button either as a "style" in XML, or as a theme in
192             ContextThemeWrapper. These self-referencing attributes make sure this is applied as
193             both to the button. -->
194        <item name="android:buttonStyle">@style/SuwGlifButton.Primary</item>
195
196        <!-- Values used in styles -->
197        <item name="android:fontFamily">?attr/suwButtonFontFamily</item>
198        <item name="android:paddingLeft">@dimen/suw_glif_button_padding</item>
199        <item name="android:paddingRight">@dimen/suw_glif_button_padding</item>
200        <item name="android:textAllCaps">?attr/suwButtonAllCaps</item>
201
202        <!-- Values used in themes -->
203        <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/suwButtonCornerRadius</item>
204    </style>
205
206    <style name="SuwGlifButton.Secondary" parent="android:Widget.Material.Button.Borderless.Colored">
207        <!-- This style can be applied to a button either as a "style" in XML, or as a theme in
208             ContextThemeWrapper. These self-referencing attributes make sure this is applied as
209             both to the button. -->
210        <item name="android:buttonStyle">@style/SuwGlifButton.Secondary</item>
211        <item name="android:theme">@style/SuwGlifButton.Secondary</item>
212
213        <!-- Values used in styles -->
214        <item name="android:fontFamily">?attr/suwButtonFontFamily</item>
215        <item name="android:minWidth">0dp</item>
216        <item name="android:paddingLeft">@dimen/suw_glif_button_padding</item>
217        <item name="android:paddingRight">@dimen/suw_glif_button_padding</item>
218        <item name="android:textAllCaps">?attr/suwButtonAllCaps</item>
219
220        <!-- Values used in themes -->
221        <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/suwButtonCornerRadius</item>
222        <item name="android:colorControlHighlight">@color/suw_flat_button_highlight</item>
223    </style>
224
225    <!-- Ignore UnusedResources: used by clients -->
226    <style name="SuwGlifButton.Tertiary"
227        parent="SuwGlifButton.BaseTertiary"
228        tools:ignore="UnusedResources">
229        <item name="android:fontFamily">sans-serif-medium</item>
230    </style>
231
232</resources>
233