blob: 47ced9b6e27c953ade016d864dbb574a90d6ccbf [file] [log] [blame]
Anthony Chen821d2902017-10-03 15:26:22 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16<resources>
17 <!-- The styling for title text. The color of this text changes based on day/night mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080018 <style name="CarTitle">
Anthony Chen821d2902017-10-03 15:26:22 -070019 <item name="android:textStyle">normal</item>
20 <item name="android:textSize">@dimen/car_title_size</item>
21 <item name="android:textColor">@color/car_title</item>
22 </style>
23
24 <!-- Title text that is permanently a dark color. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080025 <style name="CarTitle.Dark">
Anthony Chen821d2902017-10-03 15:26:22 -070026 <item name="android:textColor">@color/car_title_dark</item>
27 </style>
28
29 <!-- Title text that is permanently a light color. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080030 <style name="CarTitle.Light">
Anthony Chen821d2902017-10-03 15:26:22 -070031 <item name="android:textColor">@color/car_title_light</item>
32 </style>
33
Rodrigo Lagos930bfc02017-12-08 16:39:37 -080034 <!-- The styling for title2 text. The color of this text changes based on day/night mode. -->
35 <style name="CarTitle2">
36 <item name="android:textStyle">normal</item>
37 <item name="android:textSize">@dimen/car_title2_size</item>
38 <item name="android:textColor">@color/car_title2</item>
39 </style>
40
41 <!-- Title2 text that is permanently a dark color. -->
42 <style name="CarTitle2.Dark">
43 <item name="android:textColor">@color/car_title2_dark</item>
44 </style>
45
46 <!-- Title2 text that is permanently a light color. -->
47 <style name="CarTitle2.Light">
48 <item name="android:textColor">@color/car_title2_light</item>
49 </style>
50
Anthony Chen3f370512017-10-24 06:48:34 -070051 <!-- The styling for the main headline text. The color of this text changes based on the
52 day/night mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080053 <style name="CarHeadline1">
Anthony Chen3f370512017-10-24 06:48:34 -070054 <item name="android:textStyle">normal</item>
55 <item name="android:textSize">@dimen/car_headline1_size</item>
56 <item name="android:textColor">@color/car_headline1</item>
57 </style>
58
59 <!-- The styling for a sub-headline text. The color of this text changes based on the
60 day/night mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080061 <style name="CarHeadline2">
Anthony Chen3f370512017-10-24 06:48:34 -070062 <item name="android:textStyle">normal</item>
63 <item name="android:textSize">@dimen/car_headline2_size</item>
64 <item name="android:textColor">@color/car_headline2</item>
65 </style>
66
67 <!-- The styling for a smaller alternate headline text. The color of this text changes based on
68 the day/night mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080069 <style name="CarHeadline3">
Anthony Chen3f370512017-10-24 06:48:34 -070070 <item name="android:textStyle">normal</item>
71 <item name="android:textSize">@dimen/car_headline3_size</item>
72 <item name="android:textColor">@color/car_headline3</item>
73 </style>
74
75 <!-- The styling for the smallest headline text. The color of this text changes based on the
76 day/night mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080077 <style name="CarHeadline4">
Anthony Chen3f370512017-10-24 06:48:34 -070078 <item name="android:textStyle">normal</item>
79 <item name="android:textSize">@dimen/car_headline4_size</item>
80 <item name="android:textColor">@color/car_headline4</item>
81 </style>
82
Anthony Chen821d2902017-10-03 15:26:22 -070083 <!-- The styling for body text. The color of this text changes based on the day/night mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080084 <style name="CarBody1">
Anthony Chen821d2902017-10-03 15:26:22 -070085 <item name="android:textStyle">normal</item>
86 <item name="android:textSize">@dimen/car_body1_size</item>
87 <item name="android:textColor">@color/car_body1</item>
88 </style>
89
90 <!-- An alternate styling for body text that is both a different color and size than
91 CarBody1. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -080092 <style name="CarBody2">
Anthony Chen821d2902017-10-03 15:26:22 -070093 <item name="android:textStyle">normal</item>
94 <item name="android:textSize">@dimen/car_body2_size</item>
95 <item name="android:textColor">@color/car_body2</item>
96 </style>
97
Anthony Chen3f370512017-10-24 06:48:34 -070098 <!-- A smaller styling for body text. The color of this text changes based on the day/night
99 mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -0800100 <style name="CarBody3">
Anthony Chen3f370512017-10-24 06:48:34 -0700101 <item name="android:textStyle">normal</item>
102 <item name="android:textSize">@dimen/car_body3_size</item>
103 <item name="android:textColor">@color/car_body3</item>
104 </style>
105
106 <!-- The smallest styling for body text. The color of this text changes based on the day/night
107 mode. -->
Roshan Agrawal6f472382017-12-04 14:06:31 -0800108 <style name="CarBody4">
Anthony Chen3f370512017-10-24 06:48:34 -0700109 <item name="android:textStyle">normal</item>
110 <item name="android:textSize">@dimen/car_body4_size</item>
111 <item name="android:textColor">@color/car_body4</item>
112 </style>
113
Anthony Chen821d2902017-10-03 15:26:22 -0700114 <!-- The style for the menu bar (i.e. hamburger) and back arrow in the navigation drawer. -->
115 <style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
116 <item name="color">@color/car_title_light</item>
117 <item name="spinBars">true</item>
118 <item name="barLength">@dimen/car_menu_bar_length</item>
119 <item name="thickness">@dimen/car_arrow_thickness</item>
120 <item name="gapBetweenBars">@dimen/car_menu_bar_spacing</item>
121 <item name="arrowShaftLength">@dimen/car_arrow_shaft_length</item>
122 <item name="arrowHeadLength">@dimen/car_arrow_head_length</item>
123 <item name="drawableSize">@dimen/car_arrow_size</item>
124 </style>
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700125
Yao, Yuxing4e832ea2017-12-18 10:49:21 -0800126 <!-- The styles for the regular and borderless buttons. -->
Roshan Agrawalc3c06952017-12-28 15:33:36 -0800127 <style name="Widget.Car.Button" parent="Widget.AppCompat.Button">
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700128 <item name="android:layout_height">@dimen/car_button_height</item>
129 <item name="android:minWidth">@dimen/car_button_min_width</item>
130 <item name="android:paddingStart">@dimen/car_button_horizontal_padding</item>
131 <item name="android:paddingEnd">@dimen/car_button_horizontal_padding</item>
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700132 <item name="android:textSize">@dimen/car_action1_size</item>
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700133 <item name="android:background">@drawable/car_button_background</item>
Roshan Agrawalc3c06952017-12-28 15:33:36 -0800134 <item name="android:textColor">@drawable/car_button_text_color</item>
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700135 </style>
136
Roshan Agrawalc3c06952017-12-28 15:33:36 -0800137 <style name="Widget.Car.Button.Borderless.Colored"
138 parent="Widget.AppCompat.Button.Borderless.Colored">
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700139 <item name="android:layout_height">@dimen/car_button_height</item>
jovanak9fc7da42018-01-19 09:52:06 -0800140 <item name="android:minWidth">@dimen/car_button_min_width</item>
Roshan Agrawal6f472382017-12-04 14:06:31 -0800141 <item name="android:paddingStart">@dimen/car_borderless_button_horizontal_padding</item>
142 <item name="android:paddingEnd">@dimen/car_borderless_button_horizontal_padding</item>
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700143 <item name="android:textSize">@dimen/car_action1_size</item>
Roshan Agrawal6f472382017-12-04 14:06:31 -0800144 <item name="android:textColor">@drawable/car_borderless_button_text_color</item>
Roshan Agrawalb7a0a002017-11-01 15:48:54 -0700145 </style>
Roshan Agrawal6f472382017-12-04 14:06:31 -0800146
Yao, Yuxing4e832ea2017-12-18 10:49:21 -0800147 <!-- Style for the progress bars. -->
Roshan Agrawalc3c06952017-12-28 15:33:36 -0800148 <style name="Widget.Car.ProgressBar.Horizontal"
Roshan Agrawal7ea5b2d2017-12-18 18:21:14 -0800149 parent="Widget.AppCompat.ProgressBar.Horizontal">
150 <item name="android:minHeight">@dimen/car_progress_bar_height</item>
151 <item name="android:maxHeight">@dimen/car_progress_bar_height</item>
152 </style>
153
Roshan Agrawalc3c06952017-12-28 15:33:36 -0800154 <style name="Widget.Car.EditText" parent="Widget.AppCompat.EditText">
155 <item name="android:textColor">?attr/editTextColor</item>
156 <item name="android:textAppearance">@style/CarBody1</item>
Roshan Agrawal7ea5b2d2017-12-18 18:21:14 -0800157 </style>
158
Yao, Yuxing4e832ea2017-12-18 10:49:21 -0800159 <!-- Style for the seek bars. -->
160 <style name="Widget.Car.SeekBar" parent="Widget.AppCompat.SeekBar">
161 <item name="android:progressDrawable">@drawable/car_seekbar_track</item>
162 <item name="android:thumb">@drawable/car_seekbar_thumb</item>
163 </style>
164
165 <!-- Styles for TextInputLayout hints. -->
Roshan Agrawalc3c06952017-12-28 15:33:36 -0800166 <style name="CarHintTextAppearance" parent="CarBody2">
Roshan Agrawal7ea5b2d2017-12-18 18:21:14 -0800167 </style>
Yao, Yuxing22037e62018-01-08 09:33:35 -0800168
169 <style name="CarListVerticalDivider">
170 <item name="android:layout_width">@dimen/car_vertical_line_divider_width</item>
171 <item name="android:layout_height">@dimen/car_vertical_line_divider_height</item>
172 <item name="android:layout_marginStart">@dimen/car_padding_4</item>
173 <item name="android:background">@color/car_list_divider</item>
174 </style>
175
Anthony Chen821d2902017-10-03 15:26:22 -0700176</resources>