1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (C) 2015 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<resources xmlns:tools="http://schemas.android.com/tools"> 19 20 <!-- General styles --> 21 22 <style name="SuwThemeMaterial" parent="Theme.AppCompat.NoActionBar"> 23 <item name="android:colorBackground">@color/suw_color_background_dark</item> 24 <item name="android:indeterminateTint" tools:ignore="NewApi">@color/suw_progress_bar_color_dark</item> 25 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 26 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 27 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 28 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/suwMarginSides</item> 29 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/suwMarginSides</item> 30 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 31 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/black</item> 32 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 33 <item name="android:textColorLink">@color/suw_link_color_dark</item> 34 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 35 <item name="android:windowDisablePreview">true</item> 36 <item name="android:windowSoftInputMode">adjustResize</item> 37 38 <item name="colorAccent">@color/suw_color_accent_dark</item> 39 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 40 <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item> 41 <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item> 42 <item name="suwButtonAllCaps">true</item> 43 <item name="suwButtonFontFamily">sans-serif</item> 44 <item name="suwButtonHighlightAlpha">0.24</item> 45 <item name="suwCardBackground">@drawable/suw_card_bg_dark</item> 46 <item name="suwDividerInsetEnd">0dp</item> 47 <item name="suwDividerInsetStart">@dimen/suw_items_icon_divider_inset</item> 48 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_text_divider_inset</item> 49 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item> 50 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle</item> 51 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_dark</item> 52 <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item> 53 <item name="suwNavBarTheme">@style/SuwNavBarThemeDark</item> 54 <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item> 55 </style> 56 57 <style name="SuwThemeMaterial.Light" parent="Theme.AppCompat.Light.NoActionBar"> 58 <item name="android:colorBackground">@color/suw_color_background_light</item> 59 <item name="android:indeterminateTint" tools:ignore="NewApi">@color/suw_progress_bar_color_light</item> 60 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 61 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 62 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 63 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/suwMarginSides</item> 64 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/suwMarginSides</item> 65 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 66 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/black</item> 67 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 68 <item name="android:textColorLink">@color/suw_link_color_light</item> 69 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 70 <item name="android:windowDisablePreview">true</item> 71 <item name="android:windowSoftInputMode">adjustResize</item> 72 73 <item name="colorAccent">@color/suw_color_accent_light</item> 74 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 75 <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item> 76 <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item> 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_light</item> 81 <item name="suwDividerInsetEnd">0dp</item> 82 <item name="suwDividerInsetStart">@dimen/suw_items_icon_divider_inset</item> 83 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_text_divider_inset</item> 84 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description</item> 85 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle</item> 86 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item> 87 <item name="suwMarginSides">@dimen/suw_layout_margin_sides</item> 88 <item name="suwNavBarTheme">@style/SuwNavBarThemeLight</item> 89 <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwItemSummary</item> 90 </style> 91 92 <style name="SuwThemeGlif" parent="Theme.AppCompat.NoActionBar"> 93 <item name="android:colorBackground">@color/suw_glif_background_color_dark</item> 94 <item name="android:indeterminateTint" tools:ignore="NewApi">?attr/colorControlActivated</item> 95 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 96 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 97 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 98 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/suwMarginSides</item> 99 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/suwMarginSides</item> 100 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 101 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item> 102 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 103 <item name="android:textColorLink">@color/suw_color_accent_glif_dark</item> 104 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 105 <item name="android:windowDisablePreview">true</item> 106 <item name="android:windowSoftInputMode">adjustResize</item> 107 108 <item name="colorAccent">@color/suw_color_accent_glif_dark</item> 109 <item name="colorPrimary">?attr/colorAccent</item> 110 <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item> 111 <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item> 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">?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 <item name="textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item> 129 <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item> 130 </style> 131 132 <style name="SuwThemeGlif.Light" parent="Theme.AppCompat.Light.NoActionBar"> 133 <item name="android:colorBackground">@color/suw_glif_background_color_light</item> 134 <item name="android:indeterminateTint" tools:ignore="NewApi">?attr/colorControlActivated</item> 135 <!-- Specify the indeterminateTintMode to work around a bug in Lollipop --> 136 <item name="android:indeterminateTintMode" tools:ignore="NewApi">src_in</item> 137 <item name="android:listPreferredItemHeight">@dimen/suw_items_preferred_height</item> 138 <item name="android:listPreferredItemPaddingEnd" tools:ignore="NewApi">?attr/suwMarginSides</item> 139 <item name="android:listPreferredItemPaddingStart" tools:ignore="NewApi">?attr/suwMarginSides</item> 140 <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/black</item> 141 <item name="android:statusBarColor" tools:ignore="NewApi">@android:color/transparent</item> 142 <item name="android:textAppearanceListItemSmall" tools:ignore="NewApi">?attr/textAppearanceListItemSmall</item> 143 <item name="android:textColorLink">@color/suw_color_accent_glif_light</item> 144 <item name="android:windowAnimationStyle">@style/Animation.SuwWindowAnimation</item> 145 <item name="android:windowDisablePreview">true</item> 146 <item name="android:windowSoftInputMode">adjustResize</item> 147 148 <item name="colorAccent">@color/suw_color_accent_glif_light</item> 149 <item name="colorPrimary">?attr/colorAccent</item> 150 <item name="listPreferredItemPaddingLeft">?attr/suwMarginSides</item> 151 <item name="listPreferredItemPaddingRight">?attr/suwMarginSides</item> 152 <item name="suwButtonAllCaps">true</item> 153 <item name="suwButtonCornerRadius">@dimen/suw_glif_button_corner_radius</item> 154 <item name="suwButtonFontFamily">sans-serif-medium</item> 155 <item name="suwButtonHighlightAlpha">0.12</item> 156 <item name="suwColorPrimary">?attr/colorPrimary</item> 157 <item name="suwFillContentLayoutStyle">@style/SuwFillContentLayout</item> 158 <item name="suwDividerInsetEnd">0dp</item> 159 <item name="suwDividerInsetStart">@dimen/suw_items_glif_icon_divider_inset</item> 160 <item name="suwDividerInsetStartNoIcon">@dimen/suw_items_glif_text_divider_inset</item> 161 <item name="suwGlifHeaderGravity">start</item> 162 <item name="suwGlifIconStyle">@style/SuwGlifIcon</item> 163 <item name="suwItemDescriptionStyle">@style/SuwItemContainer.Description.Glif</item> 164 <item name="suwItemDescriptionTitleStyle">@style/SuwItemTitle.GlifDescription</item> 165 <item name="suwListItemIconColor">@color/suw_list_item_icon_color_light</item> 166 <item name="suwMarginSides">@dimen/suw_glif_margin_sides</item> 167 <item name="suwScrollIndicators">bottom</item> 168 <item name="textAppearanceListItem">@style/TextAppearance.SuwGlifItemTitle</item> 169 <item name="textAppearanceListItemSmall">@style/TextAppearance.SuwGlifItemSummary</item> 170 </style> 171 172 <style name="SuwThemeGlifV3" parent="SuwThemeGlifV2"> 173 <item name="colorAccent">@color/suw_color_accent_glif_v3</item> 174 <item name="suwButtonAllCaps">false</item> 175 <item name="suwButtonCornerRadius">@dimen/suw_glif_v3_button_corner_radius</item> 176 <item name="suwButtonFontFamily">@string/suwFontSecondaryMedium</item> 177 </style> 178 179 <style name="SuwBaseThemeGlifV3.Light" parent="SuwThemeGlifV2.Light"> 180 <item name="colorAccent">@color/suw_color_accent_glif_v3</item> 181 <item name="suwButtonAllCaps">false</item> 182 <item name="suwButtonCornerRadius">@dimen/suw_glif_v3_button_corner_radius</item> 183 <item name="suwButtonFontFamily">@string/suwFontSecondaryMedium</item> 184 </style> 185 <style name="SuwThemeGlifV3.Light" parent="SuwBaseThemeGlifV3.Light" /> 186 187 <!-- Content styles --> 188 189 <style name="TextAppearance.SuwDescription" parent="TextAppearance.AppCompat.Medium"> 190 <item name="android:textColor">?android:attr/textColorPrimary</item> 191 <item name="android:textSize">@dimen/suw_description_text_size</item> 192 </style> 193 194 <!-- Items styles --> 195 196 <style name="SuwItemContainer"> 197 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 198 <item name="android:paddingBottom">@dimen/suw_items_padding_vertical</item> 199 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/listPreferredItemPaddingRight</item> 200 <item name="android:paddingLeft">?attr/listPreferredItemPaddingLeft</item> 201 <item name="android:paddingRight">?attr/listPreferredItemPaddingRight</item> 202 <item name="android:paddingStart" tools:ignore="NewApi">?attr/listPreferredItemPaddingLeft</item> 203 <item name="android:paddingTop">@dimen/suw_items_padding_vertical</item> 204 </style> 205 206 <style name="SuwItemTitle"> 207 <item name="android:textAppearance">?attr/textAppearanceListItem</item> 208 </style> 209 210 <style name="SuwItemSummary"> 211 <item name="android:textAppearance">?attr/textAppearanceListItemSmall</item> 212 </style> 213 214 <style name="SuwSwitchStyle"> 215 <item name="android:paddingEnd" tools:ignore="NewApi">@dimen/suw_switch_padding_end</item> 216 <item name="android:paddingLeft">@dimen/suw_switch_padding_start</item> 217 <item name="android:paddingRight">@dimen/suw_switch_padding_end</item> 218 <item name="android:paddingStart" tools:ignore="NewApi">@dimen/suw_switch_padding_start</item> 219 </style> 220 221 <style name="SuwSwitchStyle.Divided" parent="SuwSwitchStyle"> 222 <item name="android:paddingEnd" tools:ignore="NewApi">?attr/listPreferredItemPaddingRight</item> 223 <item name="android:paddingRight">?attr/listPreferredItemPaddingRight</item> 224 </style> 225 226 <!-- Button styles --> 227 228 <style name="SuwGlifButton.Primary" parent="Widget.AppCompat.Button.Colored"> 229 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 230 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 231 both to the button. --> 232 <item name="android:buttonStyle">@style/SuwGlifButton.Primary</item> 233 <item name="android:theme">@style/SuwGlifButton.Primary</item> 234 <item name="buttonStyle">@style/SuwGlifButton.Primary</item> 235 236 <!-- Values used in styles --> 237 <item name="android:fontFamily" tools:targetApi="jelly_bean">?attr/suwButtonFontFamily</item> 238 <item name="android:paddingLeft">@dimen/suw_glif_button_padding</item> 239 <item name="android:paddingRight">@dimen/suw_glif_button_padding</item> 240 <item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">?attr/suwButtonAllCaps</item> 241 <item name="textAllCaps">?attr/suwButtonAllCaps</item> 242 243 <!-- Values used in themes --> 244 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/suwButtonCornerRadius</item> 245 </style> 246 247 <style name="SuwGlifButton.Secondary" parent="Widget.AppCompat.Button.Borderless.Colored"> 248 <!-- This style can be applied to a button either as a "style" in XML, or as a theme in 249 ContextThemeWrapper. These self-referencing attributes make sure this is applied as 250 both to the button. --> 251 <item name="android:buttonStyle">@style/SuwGlifButton.Secondary</item> 252 <item name="android:theme">@style/SuwGlifButton.Secondary</item> 253 <item name="buttonStyle">@style/SuwGlifButton.Secondary</item> 254 255 <!-- Values used in styles --> 256 <item name="android:fontFamily" tools:targetApi="jelly_bean">?attr/suwButtonFontFamily</item> 257 <item name="android:minWidth">0dp</item> 258 <item name="android:paddingLeft">@dimen/suw_glif_button_padding</item> 259 <item name="android:paddingRight">@dimen/suw_glif_button_padding</item> 260 <item name="android:textAllCaps" tools:targetApi="ice_cream_sandwich">?attr/suwButtonAllCaps</item> 261 <item name="textAllCaps">?attr/suwButtonAllCaps</item> 262 263 <!-- Values used in themes --> 264 <item name="android:buttonCornerRadius" tools:ignore="NewApi">?attr/suwButtonCornerRadius</item> 265 <item name="android:colorControlHighlight" tools:targetApi="lollipop">@color/suw_flat_button_highlight</item> 266 <item name="colorControlHighlight">@color/suw_flat_button_highlight</item> 267 </style> 268 269 <!-- Ignore UnusedResources: used by clients --> 270 <style name="SuwGlifButton.Tertiary" 271 parent="SuwGlifButton.BaseTertiary" 272 tools:ignore="UnusedResources"> 273 <item name="textAllCaps" tools:targetApi="ice_cream_sandwich">false</item> 274 </style> 275 276 <!-- Card layout (for tablets) --> 277 278 <style name="TextAppearance.SuwCardTitle" parent="@style/TextAppearance.AppCompat.Display1"> 279 <item name="android:textColor">@android:color/white</item> 280 </style> 281 282 <!-- GLIF Card layout (for tablets) --> 283 284 <style name="SuwGlifCardBackground"> 285 <item name="android:background">?attr/colorPrimary</item> 286 </style> 287 288 <style name="SuwBase.ProgressBarLarge" parent="@android:style/Widget.ProgressBar.Large" /> 289 290 <style name="SuwFourColorIndeterminateProgressBar" parent="SuwBase.ProgressBarLarge"> 291 <item name="android:layout_gravity">center</item> 292 <item name="android:indeterminate">true</item> 293 <item name="android:paddingEnd" tools:targetApi="17" >@dimen/suw_glif_progress_bar_padding</item> 294 <item name="android:paddingLeft">@dimen/suw_glif_progress_bar_padding</item> 295 <item name="android:paddingRight">@dimen/suw_glif_progress_bar_padding</item> 296 <item name="android:paddingStart" tools:targetApi="17" >@dimen/suw_glif_progress_bar_padding</item> 297 </style> 298 299 <!-- Navigation bar styles --> 300 301 <style name="SuwNavBarButtonStyle" parent="@android:style/Widget.Button"> 302 <item name="android:background">?attr/suwNavBarButtonBackground</item> 303 <item name="android:drawablePadding">@dimen/suw_navbar_button_drawable_padding</item> 304 <item name="android:fontFamily" tools:ignore="NewApi">sans-serif</item> 305 <item name="android:minWidth">0dp</item> 306 <item name="android:paddingLeft">@dimen/suw_navbar_button_padding_sides</item> 307 <item name="android:paddingRight">@dimen/suw_navbar_button_padding_sides</item> 308 <item name="android:textAllCaps" tools:ignore="NewApi">true</item> 309 <item name="android:textColor">?attr/suwNavBarTextColor</item> 310 <item name="android:textSize">@dimen/suw_navbar_text_size</item> 311 </style> 312 313 <style name="SuwNavBarThemeDark" parent="SuwNavBarTheme"> 314 <item name="suwNavBarBackgroundColor">@color/suw_navbar_bg_dark</item> 315 <item name="suwNavBarButtonBackground">@drawable/suw_navbar_btn_bg_dark</item> 316 </style> 317 318 <style name="SuwNavBarThemeLight" parent="SuwNavBarTheme"> 319 <item name="suwNavBarBackgroundColor">@color/suw_navbar_bg_light</item> 320 <item name="suwNavBarButtonBackground">@drawable/suw_navbar_btn_bg_light</item> 321 </style> 322 323 324 <style name="SuwAlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert" /> 325 326 <style name="SuwAlertDialogTheme.Light" parent="Theme.AppCompat.Light.Dialog.Alert" /> 327</resources> 328