<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 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">
<!-- Theme overlays -->
<!-- Fullscreen -->
<style name="Base.ThemeOverlay.BrowserUI.Fullscreen" parent="">
<!-- android:windowContentTransitions is set to true in Theme.Chromium.WithWindowAnimation,
which causes a cryptic crash in EditorDialog. See: https://crbug.com/1254821. -->
<item name="android:windowContentTransitions">false</item>
</style>
<style name="ThemeOverlay.BrowserUI.Fullscreen"
parent="Base.ThemeOverlay.BrowserUI.Fullscreen" />
<!-- Applied to the SettingsActivity's AppBarLayout to disable the
liftOnScroll color-fill effect. -->
<style name="ThemeOverlay.Settings.DisableElevationOverlay" parent="">
<item name="elevationOverlayEnabled">false</item>
</style>
<style name="ThemeOverlay.BrowserUI.DynamicColors" parent="ThemeOverlay.Material3.DynamicColors.DayNight">
<item name="elevationOverlayColor">?attr/colorPrimary</item>
<item name="elevationOverlayAccentColor">@android:color/transparent</item>
<!-- android:textColorHighlight applied by Material3 is too dark, so we override it with our
own color state list to specify a lower alpha. -->
<item name="android:textColorHighlight">@color/text_highlight_color</item>
<!-- android:textColorHint applied by Material3 is too faint, so we override it with our own
color state list. -->
<item name="android:textColorHint">@color/default_text_color_hint_list</item>
</style>
<!-- Add a persistent back button toolbar to automotive -->
<style name="ThemeOverlay.BrowserUI.Automotive.PersistentBackButtonToolbar" parent="">
<item name="windowActionBar">true</item>
<item name="windowNoTitle">false</item>
<item name="actionBarStyle">@style/ActionBarWithBackButton</item>
<item name="actionBarTheme">@style/DarkModeActionBarTheme</item>
</style>
<!-- Black action bar with back button -->
<style name="ActionBarWithBackButton">
<item name="displayOptions">homeAsUp</item>
<item name="homeAsUpIndicator">@drawable/ic_arrow_back_24dp</item>
</style>
<style name="DarkModeActionBarTheme">
<item name="background">@android:color/black</item>
<item name="colorControlNormal">@android:color/white</item>
<!-- Click event uses dark mode colors -->
<item name="colorControlHighlight">@color/ripple_material_dark</item>
</style>
<!-- Incognito switch theme overlay -->
<!-- TODO(sinansahin): See if we can pass the baseline dark theme to the incognito NTP instead.
-->
<style name="ThemeOverlay.BrowserUI.Switch.Incognito" parent="">
<item name="colorSurface">@color/baseline_neutral_10</item>
<item name="colorOnSurface">@color/baseline_neutral_90</item>
<item name="colorOnSurfaceVariant">@color/baseline_neutral_variant_80</item>
<item name="colorSurfaceVariant">@color/baseline_neutral_variant_30</item>
<item name="colorPrimary">@color/baseline_primary_80</item>
<item name="colorOnPrimary">@color/baseline_primary_20</item>
<item name="colorPrimaryContainer">@color/baseline_primary_30</item>
<item name="colorOutline">@color/baseline_neutral_variant_60</item>
<item name="colorSurfaceContainerHighest">@color/default_bg_color_dark_elev_5_baseline</item>
</style>
</resources>