1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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 <style name="Widget.ActionBar.Base" 20 parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid"/> 21 22 <style name="Widget.ActionBar" 23 parent="Widget.ActionBar.Base"> 24 <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item> 25 </style> 26 27 <style name="Widget.ActionBar.SubSettings" parent="Widget.ActionBar"> 28 <item name="android:contentInsetStart">@dimen/actionbar_subsettings_contentInsetStart</item> 29 </style> 30 31 <style name="info_label"> 32 <item name="android:layout_height">wrap_content</item> 33 <item name="android:layout_width">wrap_content</item> 34 <item name="android:textAppearance">@style/TextAppearance.info_label</item> 35 <item name="android:paddingEnd">4dip</item> 36 </style> 37 38 <style name="info_value"> 39 <item name="android:layout_height">wrap_content</item> 40 <item name="android:layout_width">wrap_content</item> 41 <item name="android:textAppearance">@style/TextAppearance.info_value</item> 42 </style> 43 44 <style name="info_small"> 45 <item name="android:layout_height">wrap_content</item> 46 <item name="android:layout_width">wrap_content</item> 47 <item name="android:textAppearance">@style/TextAppearance.info_small</item> 48 </style> 49 50 <style name="info_layout"> 51 <item name="android:orientation">vertical</item> 52 <item name="android:paddingStart">10dip</item> 53 <item name="android:paddingTop">10dip</item> 54 <item name="android:paddingEnd">10dip</item> 55 <item name="android:paddingBottom">10dip</item> 56 <item name="android:layout_width">match_parent</item> 57 <item name="android:layout_height">match_parent</item> 58 </style> 59 60 <style name="entry_layout"> 61 <item name="android:orientation">horizontal</item> 62 <item name="android:layout_width">wrap_content</item> 63 <item name="android:layout_height">wrap_content</item> 64 </style> 65 66 <style name="form_value"> 67 <item name="android:layout_height">wrap_content</item> 68 <item name="android:layout_width">match_parent</item> 69 </style> 70 71 <style name="PreferenceFragmentListSinglePane" parent="@*android:style/PreferenceFragmentList"> 72 <item name="android:layout_marginStart">0dp</item> 73 <item name="android:layout_marginEnd">0dp</item> 74 <item name="android:scrollbarStyle">outsideOverlay</item> 75 </style> 76 77 <style name="TrustedCredentialsList"> 78 <item name="android:layout_width">match_parent</item> 79 <item name="android:layout_height">match_parent</item> 80 <item name="android:scrollbarStyle">outsideOverlay</item> 81 </style> 82 83 <style name="bt_item"> 84 <item name="android:layout_width">match_parent</item> 85 <item name="android:layout_height">wrap_content</item> 86 <item name="android:layout_marginTop">8dip</item> 87 <item name="android:layout_marginStart">16dip</item> 88 <item name="android:layout_marginEnd">16dip</item> 89 <item name="android:orientation">vertical</item> 90 <item name="android:gravity">start</item> 91 </style> 92 93 <style name="bt_item_edit_content"> 94 <item name="android:layout_width">match_parent</item> 95 <item name="android:layout_height">wrap_content</item> 96 <item name="android:textSize">18sp</item> 97 </style> 98 99 <style name="wifi_item"> 100 <item name="android:layout_marginTop">8dip</item> 101 <item name="android:layout_marginStart">8dip</item> 102 <item name="android:layout_marginEnd">8dip</item> 103 <item name="android:paddingStart">8dip</item> 104 <item name="android:paddingEnd">8dip</item> 105 <item name="android:orientation">vertical</item> 106 <item name="android:gravity">start</item> 107 </style> 108 109 <style name="wifi_item_label"> 110 <item name="android:paddingStart">8dip</item> 111 <item name="android:textSize">14sp</item> 112 <item name="android:textAlignment">viewStart</item> 113 <item name="android:textAppearance">@*android:style/TextAppearance.DeviceDefault.Body1</item> 114 <item name="android:textColor">?android:attr/textColorSecondary</item> 115 </style> 116 117 <style name="wifi_item_warning"> 118 <item name="android:paddingStart">8dip</item> 119 <item name="android:textSize">12sp</item> 120 <item name="android:textAlignment">viewStart</item> 121 <item name="android:textAppearance">@*android:style/TextAppearance.DeviceDefault.Body1</item> 122 <item name="android:textColor">?android:attr/colorError</item> 123 </style> 124 125 <style name="wifi_item_content"> 126 <item name="android:textAlignment">viewStart</item> 127 <item name="android:textAppearance">@*android:style/TextAppearance.DeviceDefault.Subhead</item> 128 <item name="android:textColor">?android:attr/textColorPrimary</item> 129 <item name="android:minHeight">@dimen/min_tap_target_size</item> 130 </style> 131 132 <style name="wifi_item_spinner" parent="wifi_item_content"> 133 <item name="android:minHeight">48dp</item> 134 </style> 135 136 <style name="wifi_advanced_toggle" parent="wifi_item_content"> 137 <item name="android:background">@null</item> 138 <item name="android:button">@null</item> 139 <item name="android:drawableEnd">@drawable/ic_expand</item> 140 <item name="android:paddingStart">8dip</item> 141 <item name="android:textSize">14sp</item> 142 </style> 143 144 <style name="wifi_item_edit_content"> 145 <item name="android:paddingStart">4dip</item> 146 <item name="android:layout_marginStart">4dip</item> 147 <item name="android:textSize">18sp</item> 148 <item name="android:textAlignment">viewStart</item> 149 <item name="android:minHeight">@dimen/min_tap_target_size</item> 150 </style> 151 152 <style name="wifi_section"> 153 <item name="android:orientation">vertical</item> 154 </style> 155 156 <style name="ConfirmDeviceCredentialsAnimationStyle" 157 parent="@*android:style/Animation.Material.Activity"> 158 <item name="android:activityOpenEnterAnimation">@anim/confirm_credential_open_enter</item> 159 <item name="android:activityOpenExitAnimation">@anim/confirm_credential_open_exit</item> 160 </style> 161 162 <style name="CryptKeeperBlankTheme" parent="@android:style/Theme.Material.NoActionBar"> 163 <item name="android:background">#ff000000</item> 164 </style> 165 166 <style name="SetupWizardButton.Negative" parent="@style/SudGlifButton.Secondary"> 167 <!-- Negative margin to offset for padding of the button itself. We want the label to be 168 aligned with the text above it --> 169 <item name="android:layout_marginStart">-16dp</item> 170 </style> 171 172 <style name="SetupWizardButton.Positive" parent="@style/SudGlifButton.Primary"/> 173 174 <style name="AccentColorHighlightBorderlessButton"> 175 <item name="android:colorControlHighlight">?android:attr/colorAccent</item> 176 </style> 177 178 <style name="vpn_label"> 179 <item name="android:layout_width">match_parent</item> 180 <item name="android:layout_height">wrap_content</item> 181 <item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault.Small</item> 182 </style> 183 184 <style name="vpn_value"> 185 <item name="android:layout_width">match_parent</item> 186 <item name="android:layout_height">wrap_content</item> 187 <item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault.Medium</item> 188 <item name="android:singleLine">true</item> 189 <item name="android:textAlignment">viewStart</item> 190 <item name="android:minHeight">@dimen/min_tap_target_size</item> 191 </style> 192 193 <style name="vpn_warning"> 194 <item name="android:layout_width">match_parent</item> 195 <item name="android:layout_height">wrap_content</item> 196 <item name="android:paddingStart">8dip</item> 197 <item name="android:textAppearance">@android:style/TextAppearance.DeviceDefault.Small</item> 198 </style> 199 200 <style name="TextAppearance" parent="android:TextAppearance.DeviceDefault"/> 201 202 <style name="TextAppearance.info_label"> 203 <item name="android:textSize">14sp</item> 204 <item name="android:textStyle">bold</item> 205 </style> 206 207 <style name="TextAppearance.info_small"> 208 <item name="android:textSize">12sp</item> 209 <item name="android:textStyle">normal</item> 210 </style> 211 212 <style name="TextAppearance.info_value"> 213 <item name="android:textSize">14sp</item> 214 <item name="android:textStyle">normal</item> 215 </style> 216 217 <style name="TextAppearance.PasswordEntry" parent="android:TextAppearance.DeviceDefault"> 218 <item name="android:gravity">center</item> 219 <item name="android:singleLine">true</item> 220 <item name="android:textColor">?android:attr/textColorPrimary</item> 221 <item name="android:textSize">24sp</item> 222 </style> 223 224 <style name="TextAppearance.CryptKeeper_PasswordEntry" parent="android:TextAppearance.DeviceDefault"> 225 <item name="android:gravity">center_horizontal</item> 226 <item name="android:background">@null</item> 227 <item name="android:textCursorDrawable">@null</item> 228 <item name="android:singleLine">true</item> 229 <item name="android:imeOptions">flagForceAscii|actionDone</item> 230 </style> 231 232 <style name="TextAppearance.Medium" parent="@android:style/TextAppearance.DeviceDefault.Medium"/> 233 <style name="TextAppearance.Small" parent="@android:style/TextAppearance.DeviceDefault.Small"/> 234 <style name="TextAppearance.Switch" 235 parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title"> 236 <item name="android:textSize">16sp</item> 237 </style> 238 239 <style name="TextAppearance.CategoryTitle" 240 parent="@*android:style/TextAppearance.DeviceDefault.Body2"> 241 <item name="android:textAllCaps">true</item> 242 <item name="android:textSize">11sp</item> 243 <!-- 0.8 Spacing, 0.8/11 = 0.072727273 --> 244 <item name="android:letterSpacing">0.072727273</item> 245 </style> 246 247 <style name="TextAppearance.TileTitle" parent="@*android:style/TextAppearance.DeviceDefault.Subhead"/> 248 249 <style name="TextAppearance.SuggestionTitle" 250 parent="@*android:style/TextAppearance.DeviceDefault.Subhead"> 251 <item name="android:textSize">16sp</item> 252 </style> 253 254 <style name="TextAppearance.SuggestionSummary" parent="TextAppearance.Small"> 255 <item name="android:textColor">?android:attr/textColorSecondary</item> 256 </style> 257 258 <style name="TextAppearance.ErrorText" 259 parent="@*android:TextAppearance.DeviceDefault.Body1"> 260 <item name="android:textColor">?android:attr/colorError</item> 261 </style> 262 263 <style name="TextAppearance.Small.SwitchBar"> 264 <item name="android:textColor">?android:attr/textColorPrimary</item> 265 <item name="android:textStyle">normal</item> 266 </style> 267 268 <style name="TextAppearance.RemoveDialogContent" 269 parent="@android:style/TextAppearance.DeviceDefault"> 270 <item name="android:textSize">16sp</item> 271 <item name="android:textColor">?android:attr/textColorPrimary</item> 272 </style> 273 274 <style name="TextAppearance.SearchBar" 275 parent="@*android:style/TextAppearance.DeviceDefault.Widget.Toolbar.Subtitle"> 276 <item name="android:textSize">@dimen/search_bar_text_size</item> 277 </style> 278 279 <style name="TextAppearance.ConditionCardTitle" 280 parent="@*android:style/TextAppearance.DeviceDefault.Subhead"> 281 <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item> 282 <item name="android:textSize">16sp</item> 283 </style> 284 285 <style name="TextAppearance.ConditionCardSummary" 286 parent="@*android:style/TextAppearance.DeviceDefault.Body1"> 287 <item name="android:textColor">?android:attr/textColorSecondary</item> 288 </style> 289 290 <style name="TextAppearance.ZenOnboardingButton"> 291 <item name="android:fontFamily">sans-serif-medium</item> 292 <item name="android:textSize">14sp</item> 293 <item name="android:textColor">?android:attr/colorAccent</item> 294 <item name="android:background">@*android:drawable/btn_borderless_rect</item> 295 <item name="android:gravity">center</item> 296 <item name="android:focusable">true</item> 297 <item name="android:padding">8dp</item> 298 </style> 299 300 <style name="TextAppearance.ContextualCardDismissalText" 301 parent="@*android:style/TextAppearance.DeviceDefault.Body1"> 302 <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item> 303 <item name="android:textSize">16sp</item> 304 </style> 305 306 <style name="TextAppearance.DialogMessage" 307 parent="@*android:style/TextAppearance.DeviceDefault.Body1"> 308 <item name="android:textSize">16sp</item> 309 </style> 310 311 <style name="SuggestionCardText"> 312 <item name="android:textAlignment">viewStart</item> 313 </style> 314 315 <style name="SuggestionCardIcon"> 316 <item name="android:layout_centerHorizontal">false</item> 317 <item name="android:layout_alignParentStart">true</item> 318 <item name="android:layout_marginStart">12dp</item> 319 <item name="android:layout_marginEnd">12dp</item> 320 </style> 321 322 <style name="FingerprintLayoutTheme"> 323 <item name="android:icon">@drawable/ic_fingerprint_header</item> 324 </style> 325 326 <style name="FaceLayoutTheme"> 327 <item name="android:icon">@drawable/ic_face_header</item> 328 </style> 329 330 <style name="PreviewPagerPageIndicator"> 331 <item name="dotGap">8dp</item> 332 <item name="pageIndicatorColor">?android:attr/colorControlNormal</item> 333 <item name="currentPageIndicatorColor">?android:attr/colorControlActivated</item> 334 </style> 335 336 <style name="LanguageCheckboxAndLabel"> 337 <item name="android:layout_width">match_parent</item> 338 <item name="android:layout_height">wrap_content</item> 339 <item name="android:layout_marginStart">?android:attr/listPreferredItemPaddingStart</item> 340 <item name="android:minHeight">?android:attr/listPreferredItemHeight</item> 341 <item name="android:textAppearance">?android:attr/textAppearanceListItem</item> 342 <item name="android:gravity">center_vertical</item> 343 </style> 344 345 <style name="FingerprintHeaderStyle" parent="@*android:style/TextAppearance.DeviceDefault.Subhead"> 346 <item name="android:paddingTop">16dp</item> 347 <item name="android:textColor">@color/primary_dark_material_light</item> 348 <item name="android:lineSpacingMultiplier">1.2</item> 349 </style> 350 351 <style name="FaceHeaderStyle" parent="@*android:style/TextAppearance.DeviceDefault.Subhead"> 352 <item name="android:paddingTop">16dp</item> 353 <item name="android:textColor">@color/primary_dark_material_light</item> 354 <item name="android:lineSpacingMultiplier">1.2</item> 355 </style> 356 357 <style name="RingProgressBarStyle" 358 parent="android:style/Widget.Material.ProgressBar.Horizontal"> 359 <item name="android:indeterminate">false</item> 360 <item name="android:max">10000</item> 361 <item name="android:mirrorForRtl">false</item> 362 <item name="android:progressDrawable">@drawable/ring_progress</item> 363 </style> 364 365 <style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button.Colored"/> 366 367 <style name="ActionSecondaryButton" parent="android:Widget.DeviceDefault.Button"/> 368 369 <style name="LockPatternContainerStyle"> 370 <item name="android:maxHeight">400dp</item> 371 <item name="android:maxWidth">420dp</item> 372 <item name="android:minHeight">0dp</item> 373 <item name="android:minWidth">0dp</item> 374 <item name="android:paddingBottom">0dp</item> 375 <item name="android:paddingHorizontal">44dp</item> 376 <item name="android:paddingTop">0dp</item> 377 </style> 378 379 <style name="LockPatternStyle"> 380 <item name="*android:regularColor">@color/lock_pattern_view_regular_color</item> 381 <item name="*android:successColor">@color/lock_pattern_view_success_color</item> 382 <item name="*android:errorColor">?android:attr/colorError</item> 383 </style> 384 385 <style name="LockPatternStyle.Dark"> 386 <item name="*android:regularColor">@color/lock_pattern_view_regular_color_dark</item> 387 <item name="*android:successColor">@color/lock_pattern_view_regular_color_dark</item> 388 </style> 389 390 <style name="LockPatternStyle.Dark.Work"> 391 <item name="*android:regularColor">@*android:color/white</item> 392 </style> 393 394 <style name="LockPatternStyle.Unlock"> 395 <item name="*android:regularColor">@color/unlock_pattern_view_regular_color</item> 396 <item name="*android:successColor">@color/unlock_pattern_view_success_color</item> 397 </style> 398 399 <style name="LockPatternStyle.Setup"> 400 <item name="*android:regularColor">@color/setup_lock_pattern_view_regular_color_light</item> 401 <item name="*android:successColor">@color/setup_lock_pattern_view_success_color_light</item> 402 </style> 403 404 <style name="device_info_dialog_label"> 405 <item name="android:textAlignment">viewStart</item> 406 <item name="android:textAppearance">@*android:style/TextAppearance.DeviceDefault.Body1</item> 407 <item name="android:textColor">?android:attr/textColorSecondary</item> 408 </style> 409 410 <style name="device_info_dialog_value"> 411 <item name="android:textAlignment">viewStart</item> 412 <item name="android:textAppearance">@*android:style/TextAppearance.DeviceDefault.Body2</item> 413 <item name="android:paddingBottom">24dp</item> 414 </style> 415 416 <style name="ContextualCardStyle"> 417 <item name="android:layout_marginBottom">@dimen/contextual_card_vertical_margin</item> 418 <item name="android:layout_marginStart">@dimen/contextual_card_side_margin</item> 419 <item name="android:layout_marginEnd">@dimen/contextual_card_side_margin</item> 420 <item name="cardBackgroundColor">@color/contextual_card_background</item> 421 <item name="cardCornerRadius">@dimen/contextual_card_corner_radius</item> 422 <item name="cardElevation">0dp</item> 423 <item name="strokeColor">@color/contextual_card_stroke_color</item> 424 <item name="strokeWidth">1dp</item> 425 </style> 426 427 <style name="SearchBarStyle"> 428 <item name="android:layout_margin">@dimen/search_bar_margin</item> 429 <item name="cardCornerRadius">@*android:dimen/config_dialogCornerRadius</item> 430 <item name="enforceMaterialTheme">true</item> 431 <item name="cardElevation">3dp</item> 432 <item name="shapeAppearance">@null</item> 433 </style> 434 435 <style name="ConditionCardBorderlessButton" 436 parent="android:Widget.DeviceDefault.Button.Borderless"> 437 <item name="android:textColor">?android:attr/colorAccent</item> 438 <item name="android:textSize">14sp</item> 439 <item name="android:textAllCaps">false</item> 440 </style> 441 442 <style name="ConditionHalfCardBorderlessButton" 443 parent="@style/ConditionCardBorderlessButton"> 444 <item name="android:textAlignment">viewStart</item> 445 <item name="android:layout_marginStart">4dp</item> 446 </style> 447 448 <style name="ConditionFullCardBorderlessButton" 449 parent="@style/ConditionCardBorderlessButton"> 450 <item name="android:textAlignment">viewStart</item> 451 <item name="android:paddingStart">62dp</item> 452 <item name="android:paddingEnd">50dp</item> 453 </style> 454 455 <style name="ContextualCardDismissalButton" 456 parent="android:Widget.DeviceDefault.Button.Borderless.Colored"> 457 <item name="android:minWidth">24dp</item> 458 <item name="android:textAllCaps">false</item> 459 </style> 460 461 <style name="Widget.SliceView.Settings"> 462 <item name="titleSize">@*android:dimen/text_size_subhead_material</item> 463 <item name="rowStyle">@style/SliceRowStyle.Settings</item> 464 </style> 465 466 <style name="TextAppearance.DeferredSetupCardTitle"> 467 <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item> 468 <item name="android:textSize">16sp</item> 469 </style> 470 471 <style name="TextAppearance.DeferredSetupCardSummary" 472 parent="@*android:style/TextAppearance.DeviceDefault.Body1"> 473 <item name="android:textColor">?android:attr/textColorSecondary</item> 474 </style> 475 476 <style name="DeferredSetupCardButton" parent="android:Widget.DeviceDefault.Button.Colored"> 477 <item name="android:fontFamily">@*android:string/config_headlineFontFamilyMedium</item> 478 <item name="android:paddingBottom">@dimen/contextual_deferred_setup_card_button_padding_bottom</item> 479 <item name="android:paddingEnd">@dimen/contextual_deferred_setup_card_button_padding_end</item> 480 <item name="android:paddingStart">@dimen/contextual_deferred_setup_card_button_padding_start</item> 481 <item name="android:paddingTop">@dimen/contextual_deferred_setup_card_button_padding_top</item> 482 <item name="android:textAllCaps">false</item> 483 <item name="android:textSize">14sp</item> 484 </style> 485 486 <style name="SliceViewStyle"> 487 <!-- 2dp start padding for the start icon --> 488 <item name="android:paddingStart">2dp</item> 489 490 <!-- End margin of content without end items is 24dp. 491 android:paddingEnd = 24 - 16(contentEndPadding) --> 492 <item name="android:paddingEnd">8dp</item> 493 494 <item name="rowStyle">@style/SliceRowStyle</item> 495 <item name="android:background">@color/contextual_card_background</item> 496 </style> 497 498 <style name="SliceRowStyle"> 499 <item name="titleItemEndPadding">0dp</item> 500 501 <!-- Padding between content and the start icon is 14dp. --> 502 <item name="contentStartPadding">14dp</item> 503 <!-- Padding between content and end items is 16dp. --> 504 <item name="contentEndPadding">16dp</item> 505 506 <!-- Both side margins of end item are 16dp. 507 endItemEndPadding = 16 - 8(android:paddingEnd) --> 508 <item name="endItemStartPadding">16dp</item> 509 <item name="endItemEndPadding">8dp</item> 510 511 <!-- Both side margins of bottom divider are 12dp. 512 bottomDividerStartPadding = 12 - 2(android:paddingStart) 513 bottomDividerEndPadding = 12 - 8(android:paddingEnd) --> 514 <item name="bottomDividerStartPadding">10dp</item> 515 <item name="bottomDividerEndPadding">4dp</item> 516 517 <item name="actionDividerHeight">32dp</item> 518 </style> 519 520 <style name="SliceRowStyle.Settings"> 521 <!-- Padding between content and the start icon is 8dp. --> 522 <item name="contentStartPadding">8dp</item> 523 </style> 524 525 <style name="DisclaimerPositiveButton" parent="@style/SudGlifButton.Primary"> 526 <item name="android:layout_margin">16dp</item> 527 <item name="android:paddingStart">8dp</item> 528 <item name="android:paddingEnd">8dp</item> 529 </style> 530 531 <style name="DisclaimerNegativeButton" parent="@style/SudGlifButton.Secondary"> 532 <item name="android:layout_margin">16dp</item> 533 <item name="android:paddingStart">8dp</item> 534 <item name="android:paddingEnd">8dp</item> 535 </style> 536 537 <style name="SetupWizardPartnerResource"> 538 <!-- Disable to use partner overlay theme for outside setupwizard flow. --> 539 <item name="sucUsePartnerResource">false</item> 540 <!-- Enable heavy theme style inside setupwizard flow. --> 541 <item name="sudUsePartnerHeavyTheme">true</item> 542 </style> 543 544</resources> 545