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="suwCardBackground">@drawable/suw_card_bg</item> 48 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 49 <item name="suwDividerInsetEnd">0dp</item> 50 <item name="suwDividerInsetStart">@dimen/suw_items_icon_divider_inset</item> 51 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_text_divider_inset</item> 52 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item> 53 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle</item> 54 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item> 55 <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item> 56 <item name="suwNavBarTheme">@style/SuwNavBarThemeDark</item> 57 </style> 58 59 <style name="SuwThemeMaterial.Light" parent="android:Theme.Material.Light.NoActionBar"> 60 <item name="android:colorAccent">@color/suw_color_accent_light</item> 61 <item name="android:colorBackground">@color/suw_color_background_light</item> 62 <item name="android:indeterminateTint">@color/suw_progress_bar_color_light</item> 63 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 64 <item name="android:indeterminateTintMode">src_in</item> 65 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 66 <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item> 67 <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item> 68 <item name="android:navigationBarColor">@android:color/black</item> 69 <item name="android:statusBarColor">@android:color/black</item> 70 <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item> 71 <item name="android:textColorLink">@color/suw_link_color_light</item> 72 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 73 <item name="android:windowDisablePreview">true</item> 74 <item name="android:windowSoftInputMode">adjustResize</item> 75 76 <item name="suwButtonAllCaps">true</item> 77 <item name="suwButtonFontFamily">sans-serif</item> 78 <item name="suwCardBackground">@drawable/suw_card_bg</item> 79 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 80 <item name="suwDividerInsetEnd">0dp</item> 81 <item name="suwDividerInsetStart">@dimen/suw_items_icon_divider_inset</item> 82 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_text_divider_inset</item> 83 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item> 84 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle</item> 85 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item> 86 <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item> 87 <item name="suwNavBarTheme">@style/SuwNavBarThemeLight</item> 88 </style> 89 90 <!-- Placeholder for GLIF dark theme, colors are not updated yet --> 91 <style name="SuwThemeGlif" parent="android:Theme.Material.NoActionBar"> 92 <item name="android:colorAccent">@color/suw_color_accent_glif_dark</item> 93 <item name="android:colorBackground">@color/suw_glif_background_color_dark</item> 94 <item name="android:colorPrimary">?android:attr/colorAccent</item> 95 <item name="android:indeterminateTint">?android:attr/colorPrimary</item> 96 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 97 <item name="android:indeterminateTintMode">src_in</item> 98 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 99 <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item> 100 <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item> 101 <item name="android:navigationBarColor">@android:color/black</item> 102 <item name="android:statusBarColor">@android:color/transparent</item> 103 <item name="android:textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item> 104 <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item> 105 <item name="android:textColorLink">@color/suw_color_accent_glif_dark</item> 106 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 107 <item name="android:windowDisablePreview">true</item> 108 <item name="android:windowSoftInputMode">adjustResize</item> 109 110 <item name="suwButtonAllCaps">true</item> 111 <item name="suwButtonCornerRadius">@dimen/suw_glif_button_corner_radius</item> 112 <item name="suwButtonFontFamily">sans-serif</item> 113 <item name="suwColorPrimary">?android:attr/colorPrimary</item> 114 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 115 <item name="suwDividerInsetEnd">0dp</item> 116 <item name="suwDividerInsetStart">@dimen/suw_items_glif_icon_divider_inset</item> 117 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_glif_text_divider_inset</item> 118 <item name="suwGlifHeaderGravity">start</item> 119 <item name="suwGlifIconStyle">@style/SuwGlifIcon</item> 120 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item> 121 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle.GlifDescription</item> 122 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item> 123 <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item> 124 <item name="suwScrollIndicators">bottom</item> 125 </style> 126 127 <style name="SuwThemeGlif.Light" parent="android:Theme.Material.Light.NoActionBar"> 128 <item name="android:colorAccent">@color/suw_color_accent_glif_light</item> 129 <item name="android:colorBackground">@color/suw_glif_background_color_light</item> 130 <item name="android:colorPrimary">?android:attr/colorAccent</item> 131 <item name="android:indeterminateTint">?android:attr/colorPrimary</item> 132 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 133 <item name="android:indeterminateTintMode">src_in</item> 134 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 135 <item name="android:listPreferredItemPaddingEnd">?attr/suwMarginSides</item> 136 <item name="android:listPreferredItemPaddingStart">?attr/suwMarginSides</item> 137 <item name="android:navigationBarColor">@android:color/black</item> 138 <item name="android:statusBarColor">@android:color/transparent</item> 139 <item name="android:textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item> 140 <item name="android:textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item> 141 <item name="android:textColorLink">@color/suw_color_accent_glif_light</item> 142 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 143 <item name="android:windowDisablePreview">true</item> 144 <item name="android:windowSoftInputMode">adjustResize</item> 145 146 <item name="suwButtonAllCaps">true</item> 147 <item name="suwButtonCornerRadius">@dimen/suw_glif_button_corner_radius</item> 148 <item name="suwButtonFontFamily">sans-serif</item> 149 <item name="suwColorPrimary">?android:attr/colorPrimary</item> 150 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 151 <item name="suwDividerInsetEnd">0dp</item> 152 <item name="suwDividerInsetStart">@dimen/suw_items_glif_icon_divider_inset</item> 153 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_glif_text_divider_inset</item> 154 <item name="suwGlifHeaderGravity">start</item> 155 <item name="suwGlifIconStyle">@style/SuwGlifIcon</item> 156 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item> 157 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle.GlifDescription</item> 158 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item> 159 <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item> 160 <item name="suwScrollIndicators">bottom</item> 161 </style> 162 163 <style name="SuwThemeGlifV3" parent="SuwThemeGlifV2"> 164 <item name="android:colorAccent">@color/suw_color_accent_glif_v3</item> 165 166 <item name="suwButtonAllCaps">false</item> 167 <item name="suwButtonCornerRadius">@dimen/suw_glif_v3_button_corner_radius</item> 168 <item name="suwButtonFontFamily">@string/suwFontSecondaryMedium</item> 169 </style> 170 171 <style name="SuwThemeGlifV3.Light" parent="SuwThemeGlifV2.Light"> 172 <item name="android:colorAccent">@color/suw_color_accent_glif_v3</item> 173 <item name="android:navigationBarColor">@color/suw_glif_v3_nav_bar_color_light</item> 174 <!-- Ignore NewApi: For some reason lint seems to think this API is new in v28 (b/73514594) --> 175 <item name="android:navigationBarDividerColor" tools:ignore="NewApi">@color/suw_glif_v3_nav_bar_divider_color_light</item> 176 <!-- Ignore NewApi: For some reason lint seems to think this API is new in v28 (b/73514594) --> 177 <item name="android:windowLightNavigationBar" tools:ignore="NewApi">true</item> 178 179 <item name="suwButtonAllCaps">false</item> 180 <item name="suwButtonCornerRadius">@dimen/suw_glif_v3_button_corner_radius</item> 181 <item name="suwButtonFontFamily">@string/suwFontSecondaryMedium</item> 182 </style> 183 184 <!-- Button styles --> 185 186 <style name="SuwGlifButton.Primary" parent="android:Widget.Material.Button.Colored"> 187 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 188 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 189 both to the button. --> 190 <item name="android:buttonStyle">@style/SuwGlifButton.Primary</item> 191 192 <!-- Values used in styles --> 193 <item name="android:fontFamily">?attr/suwButtonFontFamily</item> 194 <item name="android:paddingLeft">@dimen/suw_glif_button_padding</item> 195 <item name="android:paddingRight">@dimen/suw_glif_button_padding</item> 196 <item name="android:textAllCaps">?attr/suwButtonAllCaps</item> 197 198 <!-- Values used in themes --> 199 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/suwButtonCornerRadius</item> 200 </style> 201 202 <style name="SuwGlifButton.Secondary" parent="android:Widget.Material.Button.Borderless.Colored"> 203 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 204 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 205 both to the button. --> 206 <item name="android:buttonStyle">@style/SuwGlifButton.Secondary</item> 207 <item name="android:theme">@style/SuwGlifButton.Secondary</item> 208 209 <!-- Values used in styles --> 210 <item name="android:fontFamily">?attr/suwButtonFontFamily</item> 211 <item name="android:minWidth">0dp</item> 212 <item name="android:paddingLeft">@dimen/suw_glif_button_padding</item> 213 <item name="android:paddingRight">@dimen/suw_glif_button_padding</item> 214 <item name="android:textAllCaps">?attr/suwButtonAllCaps</item> 215 216 <!-- Values used in themes --> 217 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/suwButtonCornerRadius</item> 218 <item name="android:colorControlHighlight">@color/suw_flat_button_highlight</item> 219 </style> 220 221</resources> 222