<?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">
<!-- The dim amount should match the alpha of modal_dialog_scrim_color. -->
<style name="ThemeOverlay.BrowserUI.ModalDialog" parent="ThemeOverlay.BrowserUI.AlertDialog">
<item name="android:windowFrame">@null</item>
<item name="android:backgroundDimAmount">0.65</item>
<item name="android:windowSoftInputMode">adjustResize|stateHidden</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
<style name="FilledButton.Tonal">
<item name="buttonColor">?attr/colorPrimaryContainer</item>
<item name="buttonTextColor">@macro/default_text_color_on_accent1_container</item>
<item name="verticalInset">@dimen/button_group_button_inset</item>
<item name="android:textAppearance">@style/TextAppearance.TextAccentMediumThick.Secondary</item>
<item name="textAllCaps">false</item>
</style>
<style name="FilledButton.Tonal.SingleButton">
<item name="rippleCornerRadiusTopStart">@dimen/button_group_large_radius</item>
<item name="rippleCornerRadiusTopEnd">@dimen/button_group_large_radius</item>
<item name="rippleCornerRadiusBottomEnd">@dimen/button_group_large_radius</item>
<item name="rippleCornerRadiusBottomStart">@dimen/button_group_large_radius</item>
</style>
<style name="FilledButton.Tonal.TopButton">
<item name="rippleCornerRadiusTopStart">@dimen/button_group_large_radius</item>
<item name="rippleCornerRadiusTopEnd">@dimen/button_group_large_radius</item>
<item name="rippleCornerRadiusBottomEnd">@dimen/button_group_small_radius</item>
<item name="rippleCornerRadiusBottomStart">@dimen/button_group_small_radius</item>
</style>
<style name="FilledButton.Tonal.MiddleButton">
<item name="rippleCornerRadiusTopStart">@dimen/button_group_small_radius</item>
<item name="rippleCornerRadiusTopEnd">@dimen/button_group_small_radius</item>
<item name="rippleCornerRadiusBottomEnd">@dimen/button_group_small_radius</item>
<item name="rippleCornerRadiusBottomStart">@dimen/button_group_small_radius</item>
</style>
<style name="FilledButton.Tonal.BottomButton">
<item name="rippleCornerRadiusTopStart">@dimen/button_group_small_radius</item>
<item name="rippleCornerRadiusTopEnd">@dimen/button_group_small_radius</item>
<item name="rippleCornerRadiusBottomEnd">@dimen/button_group_large_radius</item>
<item name="rippleCornerRadiusBottomStart">@dimen/button_group_large_radius</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.TextPrimaryButton" parent="ThemeOverlay.BrowserUI.ModalDialog">
<item name="buttonBarButtonStyle">@style/TextButton</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledPrimaryButton" parent="ThemeOverlay.BrowserUI.ModalDialog">
<item name="buttonBarPositiveButtonStyle">@style/FilledButton</item>
<item name="buttonBarNegativeButtonStyle">@style/TextButton</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledNegativeButton" parent="ThemeOverlay.BrowserUI.ModalDialog">
<item name="buttonBarPositiveButtonStyle">@style/TextButton</item>
<item name="buttonBarNegativeButtonStyle">@style/FilledButton</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.TextPrimaryButton.Fullscreen" parent="ThemeOverlay.BrowserUI.Fullscreen">
<item name="buttonBarButtonStyle">@style/TextButton</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledPrimaryButton.Fullscreen" parent="ThemeOverlay.BrowserUI.Fullscreen">
<item name="buttonBarPositiveButtonStyle">@style/FilledButton</item>
<item name="buttonBarNegativeButtonStyle">@style/TextButton</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledNegativeButton.Fullscreen" parent="ThemeOverlay.BrowserUI.Fullscreen">
<item name="buttonBarPositiveButtonStyle">@style/TextButton</item>
<item name="buttonBarNegativeButtonStyle">@style/FilledButton</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.TextPrimaryButton.Fullscreen.Dark" tools:targetApi="28" parent="ThemeOverlay.BrowserUI.ModalDialog.TextPrimaryButton.Fullscreen">
<item name="android:statusBarColor">@color/toolbar_background_primary_dark</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">@color/toolbar_background_primary_dark</item>
<item name="android:navigationBarDividerColor">@color/bottom_system_nav_divider_color_light</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledPrimaryButton.Fullscreen.Dark" tools:targetApi="28" parent="ThemeOverlay.BrowserUI.ModalDialog.FilledPrimaryButton.Fullscreen">
<item name="android:statusBarColor">@color/toolbar_background_primary_dark</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">@color/toolbar_background_primary_dark</item>
<item name="android:navigationBarDividerColor">@color/bottom_system_nav_divider_color_light</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledNegativeButton.Fullscreen.Dark" tools:targetApi="28" parent="ThemeOverlay.BrowserUI.ModalDialog.FilledNegativeButton.Fullscreen">
<item name="android:statusBarColor">@color/toolbar_background_primary_dark</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">@color/toolbar_background_primary_dark</item>
<item name="android:navigationBarDividerColor">@color/bottom_system_nav_divider_color_light</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.TextPrimaryButton.DialogWhenLarge" parent="ThemeOverlay.BrowserUI.Fullscreen.DialogWhenLarge">
<item name="buttonBarButtonStyle">@style/TextButton</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledPrimaryButton.DialogWhenLarge" parent="ThemeOverlay.BrowserUI.Fullscreen.DialogWhenLarge">
<item name="buttonBarPositiveButtonStyle">@style/FilledButton</item>
<item name="buttonBarNegativeButtonStyle">@style/TextButton</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
<style name="ThemeOverlay.BrowserUI.ModalDialog.FilledNegativeButton.DialogWhenLarge" parent="ThemeOverlay.BrowserUI.Fullscreen.DialogWhenLarge">
<item name="buttonBarPositiveButtonStyle">@style/TextButton</item>
<item name="buttonBarNegativeButtonStyle">@style/FilledButton</item>
<item name="dualControlLayoutVerticalPadding">@dimen/modal_dialog_control_vertical_padding_filled</item>
<item name="dualControlLayoutHorizontalPadding">@dimen/modal_dialog_control_horizontal_padding_filled</item>
</style>
</resources>