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