blob: f3829c79813c680099be662adbd25051bd337747 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="DropdownPopupWindow" parent="@android:style/Widget.ListPopupWindow">
<item name="android:popupBackground">@drawable/popup_bg_tinted</item>
</style>
<!-- Buttons -->
<style name="FilledButtonThemeOverlay">
<item name="android:buttonStyle">@style/FilledButton</item>
</style>
<style name="FilledButtonThemeOverlay.Flat" tools:ignore="UnusedResources">
<item name="android:buttonStyle">@style/FilledButton.Flat</item>
</style>
<style name="TextButtonThemeOverlay" tools:ignore="UnusedResources">
<item name="android:buttonStyle">@style/TextButton</item>
</style>
<style name="ButtonCompatBase">
<item name="android:minWidth">@dimen/button_min_width</item>
<item name="android:minHeight">@dimen/min_touch_target_size</item>
<item name="android:paddingStart">20dp</item>
<item name="android:paddingEnd">20dp</item>
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
<item name="android:gravity">center_vertical|center_horizontal</item>
<item name="verticalInset">@dimen/button_bg_vertical_inset</item>
</style>
<style name="FilledButton" parent="ButtonCompatBase" tools:ignore="UnusedResources">
<item name="android:paddingStart">24dp</item>
<item name="android:paddingEnd">24dp</item>
<item name="android:textAppearance">@style/TextAppearance.Button.Text.Filled</item>
<item name="buttonColor">@color/filled_button_bg</item>
<item name="rippleColor">@color/filled_button_ripple_color</item>
<item name="buttonRaised">true</item>
</style>
<style name="FilledButton.Flat" tools:ignore="UnusedResources">
<item name="buttonRaised">false</item>
</style>
<style name="TextButton" parent="ButtonCompatBase" tools:ignore="UnusedResources">
<item name="android:paddingStart">8dp</item>
<item name="android:paddingEnd">8dp</item>
<item name="android:textAppearance">@style/TextAppearance.Button.Text.Blue</item>
<item name="buttonColor">@android:color/transparent</item>
<item name="rippleColor">@color/text_button_ripple_color</item>
<item name="buttonRaised">false</item>
</style>
<style name="TextButton.Inverse" tools:ignore="UnusedResources">
<item name="android:textAppearance">@style/TextAppearance.Button.Text.Inverse</item>
<item name="rippleColor">@color/filled_button_ripple_color</item>
</style>
<!-- Chips -->
<style name="SuggestionChipThemeOverlay" tools:ignore="UnusedResources">
<item name="chipStyle">@style/SuggestionChip</item>
</style>
<style name="Chip">
<item name="android:minHeight">@dimen/min_touch_target_size</item>
<item name="android:gravity">center_vertical</item>
<item name="android:orientation">horizontal</item>
<item name="chipColor">@color/chip_background_color</item>
<item name="primaryTextAppearance">@style/TextAppearance.ChipText</item>
<item name="secondaryTextAppearance">@style/TextAppearance.ChipHint</item>
<item name="rippleColor">@color/chip_ripple_color</item>
<item name="verticalInset">@dimen/chip_bg_vertical_inset</item>
</style>
<style name="SuggestionChip" parent="Chip" tools:ignore="UnusedResources">
<item name="primaryTextAppearance">@style/TextAppearance.ChipHint</item>
<item name="cornerRadius">@dimen/chip_corner_radius</item>
</style>
<style name="InputChip" parent="Chip" tools:ignore="UnusedResources">
<item name="cornerRadius">@dimen/chip_default_height</item>
</style>
<style name="AssistiveChip" parent="Chip" tools:ignore="UnusedResources">
<item name="cornerRadius">@dimen/chip_default_height</item>
</style>
<style name="InputChipWithRemoveIcon" parent="InputChip" tools:ignore="UnusedResources">
<item name="iconWidth">28dp</item>
<item name="iconHeight">28dp</item>
<item name="useRoundedIcon">true</item>
<item name="endIconWidth">18dp</item>
<item name="endIconHeight">18dp</item>
</style>
<style name="SearchShortcutChip" parent="Chip" tools:ignore="UnusedResources">
<item name="cornerRadius">@dimen/chip_default_height</item>
<item name="primaryTextAppearance">@style/TextAppearance.TextMediumThick.Primary</item>
<item name="chipColor">@color/default_text_color_inverse</item>
</style>
<style name="ChipTextView" tools:ignore="UnusedResources">
<item name="android:gravity">center</item>
<item name="android:maxLines">1</item>
<item name="android:paddingStart">@dimen/chip_element_leading_padding</item>
<item name="android:textAlignment">center</item>
</style>
<style name="MenuChip" parent="Chip">
<item name="cornerRadius">@dimen/chip_default_height</item>
<item name="primaryTextAppearance">@style/TextAppearance.MenuChip.Text.Blue</item>
<item name="chipColor">@color/menu_chip_background</item>
<item name="solidColorChip">true</item>
<item name="verticalInset">@dimen/menu_chip_vertical_inset</item>
</style>
<!-- Used by Chrome and Content -->
<style name="TextAppearance" parent="android:TextAppearance" tools:ignore="UnusedResources" />
<style name="TextAppearance.RobotoMediumStyle">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textStyle">bold</item>
</style>
<!-- This style is overridden downstream to set accent_font_medium as the font family. -->
<style name="TextAppearance.AccentMediumStyle" parent="TextAppearance.RobotoMediumStyle" />
<!-- Base Text Styles -->
<!--
Define incomplete base text styles. The styles in this section are used
to create other text styles below and should not be used directly to style
text as they are missing textColor attributes
-->
<style name="TextAppearance.Headline">
<item name="android:fontFamily">@font/accent_font</item>
<item name="android:textSize">@dimen/headline_size</item>
</style>
<style name="TextAppearance.TextLarge">
<item name="android:textSize">@dimen/text_size_large</item>
</style>
<style name="TextAppearance.TextMediumThick" parent="TextAppearance.RobotoMediumStyle">
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.TextAccentMediumThick" parent="TextAppearance.AccentMediumStyle">
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.TextMedium">
<item name="android:textSize">@dimen/text_size_medium</item>
</style>
<style name="TextAppearance.TextSmall">
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Adaptive Text Styles -->
<!--
Adaptive text styles are dark when the app is in light theme (for display
on a light background) and light when the app is in dark theme (for
display on a dark background).
-->
<style name="TextAppearance.Headline.Primary">
<item name="android:textColor">@color/default_text_color_list</item>
</style>
<style name="TextAppearance.TextLarge.Primary">
<item name="android:textColor">@color/default_text_color_list</item>
</style>
<style name="TextAppearance.TextLarge.Secondary">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
</style>
<style name="TextAppearance.TextLarge.Disabled">
<item name="android:textColor">@color/default_text_color_disabled</item>
</style>
<style name="TextAppearance.TextMediumThick.Primary">
<item name="android:textColor">@color/default_text_color_list</item>
</style>
<style name="TextAppearance.TextMediumThick.Secondary">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
</style>
<style name="TextAppearance.TextAccentMediumThick.Secondary" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
</style>
<style name="TextAppearance.TextMedium.Primary">
<item name="android:textColor">@color/default_text_color_list</item>
</style>
<style name="TextAppearance.TextMedium.Secondary">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
</style>
<style name="TextAppearance.TextMedium.Disabled">
<item name="android:textColor">@color/default_text_color_disabled</item>
</style>
<style name="TextAppearance.TextSmall.Primary">
<item name="android:textColor">@color/default_text_color_list</item>
</style>
<style name="TextAppearance.TextSmall.Secondary">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
</style>
<style name="TextAppearance.TextSmall.Disabled">
<item name="android:textColor">@color/default_text_color_disabled</item>
</style>
<style name="TextAppearance.BlackLink" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_medium</item>
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance.BlackToolbarTitle" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_list</item>
<item name="android:textSize">@dimen/text_size_large</item>
<item name="android:textStyle">bold</item>
</style>
<!-- Non Adaptive Text Styles -->
<!-- Light version -->
<style name="TextAppearance.Headline.Primary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextLarge.Primary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextMediumThick.Primary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextMedium.Primary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextSmall.Primary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextMediumThick.Secondary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_light_list</item>
</style>
<style name="TextAppearance.TextLarge.Secondary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_light_list</item>
</style>
<style name="TextAppearance.TextMedium.Secondary.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_light_list</item>
</style>
<style name="TextAppearance.TextLarge.Disabled.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_light</item>
</style>
<style name="TextAppearance.TextSmall.Disabled.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_light</item>
</style>
<style name="TextAppearance.WhiteLink" tools:ignore="UnusedResources">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/text_size_medium</item>
<item name="android:textStyle">bold</item>
</style>
<!-- Dark version -->
<style name="TextAppearance.Headline.Primary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextLarge.Primary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextMedium.Primary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextSmall.Primary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>
<style name="TextAppearance.TextLarge.Secondary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextMedium.Secondary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextSmall.Secondary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextMediumThick.Secondary.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_secondary_dark</item>
</style>
<style name="TextAppearance.TextLarge.Disabled.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_dark</item>
</style>
<style name="TextAppearance.TextMedium.Disabled.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_dark</item>
</style>
<style name="TextAppearance.TextSmall.Disabled.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_disabled_dark</item>
</style>
<!-- Inverse text styles -->
<!-- Text styles used on dark background on light theme, and light background on dark theme. -->
<style name="TextAppearance.Headline.Primary.Inverse" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.TextMediumThick.Primary.Inverse" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.TextMedium.Primary.Inverse" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.TextSmall.Primary.Inverse" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<!-- Blue And Button Text Styles -->
<style name="TextAppearance.TextLarge.Blue">
<item name="android:textColor">@color/blue_when_enabled</item>
</style>
<style name="TextAppearance.TextMedium.Blue">
<item name="android:textColor">@color/blue_when_enabled</item>
</style>
<style name="TextAppearance.TextMediumThick.Blue">
<item name="android:textColor">@color/blue_when_enabled</item>
</style>
<style name="TextAppearance.TextSmall.Blue">
<item name="android:textColor">@color/blue_when_enabled</item>
</style>
<style name="TextAppearance.TextMediumThick.Green">
<item name="android:textColor">@color/default_green</item>
</style>
<style name="TextAppearance.TextMediumThick.Green.Dark">
<item name="android:textColor">@color/default_green_dark</item>
</style>
<style name="TextAppearance.Button.Text.Blue" parent="TextAppearance.TextAccentMediumThick"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled</item>
</style>
<style name="TextAppearance.Button.Text.Blue.Dark" parent="TextAppearance.TextAccentMediumThick"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/blue_when_enabled_dark</item>
</style>
<style name="TextAppearance.Button.Text.Filled" parent="TextAppearance.TextAccentMediumThick">
<item name="android:textColor">@color/default_text_color_inverse</item>
</style>
<style name="TextAppearance.Button.Text.Inverse" parent="TextAppearance.TextAccentMediumThick"
tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_inverse_list</item>
</style>
<style name="TextAppearance.MenuChip.Text.Blue" parent="TextAppearance.Button.Text.Blue">
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Blue Non Adaptive Text Styles -->
<style name="TextAppearance.TextMedium.Blue.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_light</item>
</style>
<style name="TextAppearance.TextMediumThick.Blue.Light" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_light</item>
</style>
<style name="TextAppearance.TextLarge.Blue.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<style name="TextAppearance.TextMedium.Blue.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<style name="TextAppearance.TextSmall.Blue.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<style name="TextAppearance.TextMediumThick.Blue.Dark" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_icon_color_blue_dark</item>
</style>
<!-- Error Text Styles -->
<style name="TextAppearance.ErrorCaption" tools:ignore="UnusedResources">
<item name="android:textColor">@color/default_text_color_error</item>
<item name="android:textSize">@dimen/text_size_small</item>
</style>
<!-- Chip Text Styles -->
<style name="TextAppearance.ChipText" parent="TextAppearance.TextAccentMediumThick">
<item name="android:textColor">@color/chip_text_color</item>
</style>
<style name="TextAppearance.ChipHint" parent="TextAppearance.TextAccentMediumThick">
<item name="android:textColor">@color/chip_text_color_secondary</item>
</style>
<!-- Dividers -->
<style name="HorizontalDivider"
tools:ignore="UnusedResources">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">@dimen/divider_height</item>
<item name="android:background">?android:attr/listDivider</item>
<item name="android:importantForAccessibility">no</item>
</style>
<style name="VerticalDivider"
tools:ignore="UnusedResources">
<item name="android:layout_width">@dimen/divider_height</item>
<item name="android:layout_height">match_parent</item>
<item name="android:background">?android:attr/listDivider</item>
<item name="android:importantForAccessibility">no</item>
</style>
</resources>