<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- =============== -->
<!-- Main Car Themes -->
<!-- =============== -->
<eat-comment />
<!-- Base style for the Car. This theme has light colors for card backgrounds and dark
text. These colors will invert for night. -->
<style name="Theme.Car.NoActionBar" parent="Theme.AppCompat.NoActionBar">
<item name="android:colorAccent">@color/car_accent</item>
<item name="android:colorButtonNormal">@color/car_accent</item>
<item name="android:colorControlHighlight">@color/car_card_ripple_background</item>
<item name="android:buttonStyle">@style/Widget.Car.Button</item>
<item name="android:borderlessButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
<item name="android:progressBarStyleHorizontal">@style/Widget.Car.ProgressBar.Horizontal</item>
<item name="android:textColorHint">@color/car_body2</item>
<item name="android:editTextStyle">@style/Widget.Car.EditText</item>
<item name="android:editTextColor">@color/car_body1</item>
<item name="android:colorControlNormal">@color/car_body2</item>
<item name="android:seekBarStyle">@style/Widget.Car.SeekBar</item>
<item name="actionBarItemBackground">@drawable/car_card_ripple_background</item>
<item name="actionBarSize">@dimen/car_app_bar_height</item>
<item name="actionButtonStyle">@style/Widget.Car.ActionButton</item>
<item name="actionMenuTextAppearance">@style/TextAppearance.Car.ActionBar.Menu</item>
<item name="actionMenuTextColor">@color/car_accent</item>
<item name="carDialogTheme">@style/Theme.Car.Dialog</item>
<item name="colorControlHighlight">@color/car_card_ripple_background</item>
<item name="listItemBackgroundColor">@color/car_card</item>
<item name="listItemTitleTextAppearance">@style/TextAppearance.Car.Body1</item>
<item name="listItemBodyTextAppearance">@style/TextAppearance.Car.Body2</item>
<item name="listItemSubheaderTextAppearance">@style/TextAppearance.Car.Subheader</item>
<item name="pagedListViewStyle">@style/Widget.Car.List</item>
<item name="toolbarNavigationButtonStyle">@style/Widget.Car.Toolbar.Button.Navigation</item>
<item name="toolbarStyle">@style/Widget.Car.Toolbar</item>
</style>
<!-- Theme for the Car that is a passthrough for the default theme. -->
<style name="Theme.Car.Light.NoActionBar" parent="Theme.Car.NoActionBar" />
<!-- Theme for the Car that will have dark colors for card backgrounds and light color for
text. The colors will not change for night mode. -->
<style name="Theme.Car.Dark.NoActionBar" parent="Theme.Car.NoActionBar">
<item name="android:alertDialogTheme">@style/Theme.Car.Dark.Dialog.Alert</item>
<item name="android:colorControlHighlight">@color/car_card_ripple_background_inverse</item>
<item name="android:seekBarStyle">@style/Widget.Car.SeekBar.Light</item>
<item name="alertDialogTheme">@style/Theme.Car.Dark.Dialog.Alert</item>
<item name="carDialogTheme">@style/Theme.Car.Dark.Dialog</item>
<item name="colorControlHighlight">@color/car_card_ripple_background_inverse</item>
<item name="pagedListViewStyle">@style/Widget.Car.Light.List.LightDivider</item>
<item name="listItemBackgroundColor">@color/car_card_dark</item>
<item name="listItemTitleTextAppearance">@style/TextAppearance.Car.Body1.Light</item>
<item name="listItemBodyTextAppearance">@style/TextAppearance.Car.Body2.Light</item>
<item name="listItemSubheaderTextAppearance">@style/TextAppearance.Car.Subheader.Light</item>
</style>
<!-- A Theme for activities that have a drawer affordance. This theme will automatically switch
to darker colors during night mode. -->
<style name="Theme.Car.NoActionBar.Drawer">
<item name="drawerArrowStyle">@style/Widget.Car.DrawerArrowToggle</item>
<item name="drawerBackgroundColor">@color/car_card</item>
<item name="drawerRippleColor">@color/car_card_ripple_background</item>
<item name="drawerHeaderColor">@color/car_title2</item>
<item name="drawerItemTitleTextAppearance">@style/TextAppearance.Car.Body1</item>
<item name="drawerItemBodyTextAppearance">@style/TextAppearance.Car.Body2</item>
<item name="drawerListStyle">@style/Widget.Car.List</item>
</style>
<!-- A Theme for activities that have a drawer affordance. This theme will automatically switch
to darker colors during night mode. -->
<style name="Theme.Car.Light.NoActionBar.Drawer" parent="Theme.Car.NoActionBar.Drawer" />
<!-- A dark-colored theme for activities that have a drawer affordance. -->
<style name="Theme.Car.Dark.NoActionBar.Drawer">
<item name="drawerArrowStyle">@style/Widget.Car.DrawerArrowToggle</item>
<item name="drawerBackgroundColor">@color/car_card_dark</item>
<item name="drawerRippleColor">@color/car_card_ripple_background_light</item>
<item name="drawerHeaderColor">@color/car_title2_light</item>
<item name="drawerItemTitleTextAppearance">@style/TextAppearance.Car.Body1.Light</item>
<item name="drawerItemBodyTextAppearance">@style/TextAppearance.Car.Body2.Light</item>
<item name="drawerListStyle">@style/Widget.Car.Light.List.LightDivider</item>
</style>
<!-- ============= -->
<!-- Dialog Themes -->
<!-- ============= -->
<eat-comment />
<!-- Base style for dialogs provided by the car support library. -->
<style name="Theme.Car.Dialog" parent="Theme.AppCompat.Dialog">
<item name="android:colorControlHighlight">@color/car_card_ripple_background</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="colorControlHighlight">@color/car_card_ripple_background</item>
<item name="dialogButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
<item name="dialogBackgroundColor">@color/car_card</item>
<item name="dialogListTheme">@style/Theme.Car.List</item>
<item name="dialogTitleStyle">@style/Widget.Car.Dialog.Title</item>
<item name="dialogBodyStyle">@style/Widget.Car.Dialog.Body</item>
</style>
<!-- Styling for dialogs provided by the car support library that is fixed in a dark-color. -->
<style name="Theme.Car.Dark.Dialog" parent="Theme.Car.Dialog">
<item name="android:colorControlHighlight">@color/car_card_ripple_background_inverse</item>
<item name="colorControlHighlight">@color/car_card_ripple_background_inverse</item>
<item name="dialogButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
<item name="dialogBackgroundColor">@color/car_card_dark</item>
<item name="dialogListTheme">@style/Theme.Car.Light.List.DarkItems</item>
<item name="dialogTitleStyle">@style/Widget.Car.Dialog.Title.Light</item>
<item name="dialogBodyStyle">@style/Widget.Car.Dialog.Body.Light</item>
</style>
<!-- ===================================== -->
<!-- Framework and AppCompat Dialog Themes -->
<!-- ===================================== -->
<!-- Styles for framework and the Appcompat AlertDialog. This style will automatically
change the background color of the dialog based on the day/night mode. -->
<style name="Theme.Car.Dialog.Alert" parent="Theme.AppCompat.Dialog.Alert">
<item name="android:background">@color/car_card</item>
<item name="android:borderlessButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
<item name="android:colorButtonNormal">@color/car_accent</item>
<item name="android:listDividerAlertDialog">@drawable/car_list_divider</item>
<item name="android:textColorPrimary">@color/car_body2</item>
<item name="android:windowTitleStyle">@style/Widget.Car.Dialog.Title</item>
<item name="buttonBarNeutralButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
<item name="buttonBarNegativeButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
<item name="buttonBarPositiveButtonStyle">@style/Widget.Car.Button.Borderless.Colored</item>
</style>
<!-- Style for framework and the Appcompat AlertDialog that is fixed to have a light colored
background. -->
<style name="Theme.Car.Light.Dialog.Alert" parent="Theme.Car.Dialog.Alert">
<item name="android:background">@color/car_card_light</item>
<item name="android:listDividerAlertDialog">@drawable/car_list_divider_dark</item>
<item name="android:textColorPrimary">@color/car_body2_dark</item>
<item name="android:windowTitleStyle">@style/Widget.Car.Dialog.Title.Dark</item>
</style>
<!-- Style for framework and the Appcompat AlertDialog that is fixed to have a dark colored
background. -->
<style name="Theme.Car.Dark.Dialog.Alert" parent="Theme.Car.Dialog.Alert">
<item name="android:background">@color/car_card_dark</item>
<item name="android:listDividerAlertDialog">@drawable/car_list_divider_light</item>
<item name="android:textColorPrimary">@color/car_body2_light</item>
<item name="android:windowTitleStyle">@style/Widget.Car.Dialog.Title.Light</item>
</style>
<!-- =========== -->
<!-- List Themes -->
<!-- =========== -->
<eat-comment />
<!-- A theme for PagedListViews that will have a dark scrollbars and light-colored items. The
colors will darken during night mode. -->
<style name="Theme.Car.List" parent="android:Theme">
<item name="pagedListViewStyle">@style/Widget.Car.List</item>
<item name="listItemBackgroundColor">@color/car_card</item>
<item name="listItemTitleTextAppearance">@style/TextAppearance.Car.Body1</item>
<item name="listItemBodyTextAppearance">@style/TextAppearance.Car.Body2</item>
</style>
<!-- A theme for PagedListViews that will have a light scrollbars and light-colored items. The
colors will darken during night mode. -->
<style name="Theme.Car.Light.List" parent="Theme.Car.List">
<item name="pagedListViewStyle">@style/Widget.Car.Light.List.LightDivider</item>
</style>
<!-- A theme for PagedListViews that will have a light scrollbars and dark-colored items. The
colors do not change for night mode. -->
<style name="Theme.Car.Light.List.DarkItems">
<item name="listItemBackgroundColor">@color/car_card_dark</item>
<item name="listItemTitleTextAppearance">@style/TextAppearance.Car.Body1.Light</item>
<item name="listItemBodyTextAppearance">@style/TextAppearance.Car.Body2.Light</item>
</style>
</resources>