| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2019 The Chromium Authors |
| 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"> |
| <!-- Control styles --> |
| <style name="Widget.BrowserUI.CheckBox" parent="Widget.Material3.CompoundButton.CheckBox"> |
| <item name="buttonTint">@color/selection_control_button_tint_list</item> |
| <item name="android:minWidth">0dp</item> |
| <item name="android:minHeight">0dp</item> |
| <item name="android:textAppearance">@style/TextAppearance.TextMedium.Primary</item> |
| </style> |
| <style name="Widget.BrowserUI.RadioButton" parent="Widget.Material3.CompoundButton.RadioButton"> |
| <item name="buttonTint">@color/selection_control_button_tint_list</item> |
| <item name="android:minWidth">0dp</item> |
| <item name="android:minHeight">0dp</item> |
| <item name="android:textAppearance">@style/TextAppearance.TextMedium.Primary</item> |
| </style> |
| <style name="Widget.BrowserUI.Switch" parent="Widget.Material3.CompoundButton.MaterialSwitch"> |
| <item name="android:scaleX">@fraction/material_switch_scale_fraction</item> |
| <item name="android:scaleY">@fraction/material_switch_scale_fraction</item> |
| <item name="android:minHeight">@dimen/switch_pre_scale_min_height</item> |
| </style> |
| <style name="Widget.BrowserUI.Switch.Incognito"> |
| <item name="materialThemeOverlay">@style/ThemeOverlay.BrowserUI.Switch.Incognito</item> |
| </style> |
| <!-- TextInputLayout style --> |
| <style name="Widget.BrowserUI.TextInputLayout" parent="Widget.Design.TextInputLayout"> |
| <item name="errorTextAppearance">@style/TextAppearance.ErrorCaption</item> |
| </style> |
| |
| <!-- Basic theme for an overflow menu displayed in Chrome. --> |
| <style name="Base.OverflowMenuThemeOverlay" parent=""> |
| <item name="android:popupMenuStyle">@android:style/Widget.Material.PopupMenu</item> |
| <item name="android:popupBackground">@null</item> |
| <item name="android:listDivider">@null</item> |
| <item name="android:listPreferredItemHeightSmall">48dp</item> |
| <item name="android:textAppearance">@style/TextAppearance.TextLarge.Primary</item> |
| <item name="colorControlHighlight">@color/control_highlight_color</item> |
| </style> |
| <style name="OverflowMenuThemeOverlay" parent="Base.OverflowMenuThemeOverlay" /> |
| |
| <style name="AlertDialogButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog"> |
| <item name="android:textAppearance">@style/TextAppearance.Button.Text.Blue</item> |
| </style> |
| |
| <!-- Styled to match BlackHeadline but setup to override values in the app compat parent theme. |
| Note that the fontFamily doesn't get applied on older versions of Android. |
| See https://crbug.com/918697.--> |
| <style name="TextAppearance.AlertDialogTitleStyle" |
| parent="RtlOverlay.DialogWindowTitle.AppCompat"> |
| <item name="android:textColor">@color/default_text_color_list</item> |
| <item name="android:textSize">@dimen/headline_size</item> |
| <item name="android:fontFamily">@font/accent_font</item> |
| <item name="android:textStyle">normal</item> |
| </style> |
| |
| <style name="AlertDialogContent"> |
| <item name="android:layout_width">match_parent</item> |
| <item name="android:layout_height">wrap_content</item> |
| <item name="android:textAlignment">viewStart</item> |
| <item name="android:paddingStart">@dimen/dialog_padding_sides</item> |
| <item name="android:paddingEnd">@dimen/dialog_padding_sides</item> |
| <item name="android:paddingTop">@dimen/dialog_padding_top</item> |
| </style> |
| <style name="AlertDialogSummaryViewItem"> |
| <item name="android:layout_width">match_parent</item> |
| <item name="android:layout_height">wrap_content</item> |
| <item name="android:textAlignment">viewStart</item> |
| <item name="android:paddingTop">10dp</item> |
| <item name="android:textAppearance">@style/TextAppearance.TextMedium.Secondary</item> |
| </style> |
| |
| <style name="ProgressBarStyle" parent="Widget.AppCompat.ProgressBar"> |
| <item name="android:indeterminateTint">@macro/default_icon_color_accent1</item> |
| </style> |
| |
| <!-- Styling for an app menu item row. --> |
| <style name="AppMenuItem"> |
| <item name="android:paddingStart">16dp</item> |
| <item name="android:paddingEnd">16dp</item> |
| <item name="android:background">?attr/listChoiceBackgroundIndicator</item> |
| </style> |
| |
| <!-- Checkbox styles. --> |
| <style name="DefaultCheckboxStyle" parent="TextAppearance.TextMedium.Secondary"> |
| <!-- The space between the checkbox and text. --> |
| <item name="android:paddingStart">16dp</item> |
| </style> |
| |
| <style name="ModernToolbar" parent="Base.ModernToolbar"> |
| <item name="android:background">@macro/default_bg_color</item> |
| </style> |
| |
| <style name="Base.ModernToolbar" parent="Widget.MaterialComponents.Toolbar"> |
| <item name="titleTextAppearance">@style/TextAppearance.Headline.Primary</item> |
| <item name="titleTextColor">@macro/default_text_color</item> |
| <item name="windowActionBarOverlay">true</item> |
| </style> |
| |
| <style name="TextButton.OnAccent1" tools:ignore="UnusedResources"> |
| <item name="android:textAppearance">@style/TextAppearance.Button.OnAccent1</item> |
| <item name="buttonTextColor">@color/default_text_color_on_accent1_list</item> |
| <item name="rippleColor">@color/filled_button_ripple_color</item> |
| </style> |
| |
| <!-- Text styles --> |
| <!-- Primary text styles --> |
| <style name="TextAppearance.Headline.Primary"> |
| <item name="android:textColor">@color/default_text_color_list</item> |
| </style> |
| |
| <style name="TextAppearance.Headline2Thick.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.TextMediumThick.Primary"> |
| <item name="android:textColor">@color/default_text_color_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextMedium.Primary"> |
| <item name="android:textColor">@color/default_text_color_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextSmall.Primary"> |
| <item name="android:textColor">@color/default_text_color_list</item> |
| </style> |
| |
| <!-- Secondary text styles --> |
| <style name="TextAppearance.Headline2Thick.Secondary" > |
| <item name="android:textColor">@color/default_text_color_secondary_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextLarge.Secondary"> |
| <item name="android:textColor">@color/default_text_color_secondary_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"> |
| <item name="android:textColor">@color/default_text_color_secondary_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextMedium.Secondary"> |
| <item name="android:textColor">@color/default_text_color_secondary_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextSmall.Secondary"> |
| <item name="android:textColor">@color/default_text_color_secondary_list</item> |
| </style> |
| |
| <!-- Accent1 text styles --> |
| <style name="TextAppearance.TextMedium.Accent1"> |
| <item name="android:textColor">@color/default_text_color_accent1_tint_list</item> |
| </style> |
| <style name="TextAppearance.TextMediumThick.Accent1"> |
| <item name="android:textColor">@color/default_text_color_accent1_tint_list</item> |
| </style> |
| <style name="TextAppearance.TextSmall.Accent1"> |
| <item name="android:textColor">@color/default_text_color_accent1_tint_list</item> |
| </style> |
| <style name="TextAppearance.TextLarge.Link" parent="TextAppearance.TextLarge"> |
| <item name="android:textColor">@color/default_text_color_link_tint_list</item> |
| </style> |
| <style name="TextAppearance.TextMedium.Link" parent="TextAppearance.TextMedium"> |
| <item name="android:textColor">@color/default_text_color_link_tint_list</item> |
| </style> |
| <style name="TextAppearance.TextSmall.Link" parent="TextAppearance.TextSmall"> |
| <item name="android:textColor">@color/default_text_color_link_tint_list</item> |
| </style> |
| |
| <!-- Formerly inverse text styles --> |
| <!-- Text styles used on dark background on light theme, and light background on dark theme. --> |
| <style name="TextAppearance.Headline.Primary.OnAccent1" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_on_accent1_list</item> |
| </style> |
| <style name="TextAppearance.TextMediumThick.Primary.OnAccent1" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_on_accent1_list</item> |
| </style> |
| <style name="TextAppearance.TextMedium.Primary.OnAccent1" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_on_accent1_list</item> |
| </style> |
| <style name="TextAppearance.TextSmall.Primary.OnAccent1" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_on_accent1_list</item> |
| </style> |
| <style name="TextAppearance.Button.OnAccent1" parent="TextAppearance.TextMediumThick.Primary.OnAccent1"/> |
| |
| <!-- Chip Text Styles --> |
| <style name="TextAppearance.ChipText" parent="TextAppearance.TextAccentMediumThick"> |
| <item name="android:textColor">@color/chip_text_color_secondary_list</item> |
| </style> |
| <style name="TextAppearance.ChipHint" parent="TextAppearance.TextAccentMediumThick"> |
| <item name="android:textColor">@color/chip_text_color_secondary_list</item> |
| </style> |
| |
| <!-- Other text styles --> |
| <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> |
| <style name="TextAppearance.EditorDialogSectionAddButton" |
| parent="TextAppearance.TextMedium.Link"> |
| <item name="android:textAllCaps">true</item> |
| </style> |
| |
| <!-- Disabled text styles --> |
| <style name="TextAppearance.Headline.Disabled" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_disabled_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextLarge.Disabled" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_disabled_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextMedium.Disabled"> |
| <item name="android:textColor">@color/default_text_color_disabled_list</item> |
| </style> |
| |
| <style name="TextAppearance.TextSmall.Disabled" tools:ignore="UnusedResources"> |
| <item name="android:textColor">@color/default_text_color_disabled_list</item> |
| </style> |
| |
| </resources> |