Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <resources> |
| 17 | <!-- The styling for title text. The color of this text changes based on day/night mode. --> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 18 | <style name="CarTitle"> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 19 | <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 Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 25 | <style name="CarTitle.Dark"> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 26 | <item name="android:textColor">@color/car_title_dark</item> |
| 27 | </style> |
| 28 | |
| 29 | <!-- Title text that is permanently a light color. --> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 30 | <style name="CarTitle.Light"> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 31 | <item name="android:textColor">@color/car_title_light</item> |
| 32 | </style> |
| 33 | |
Rodrigo Lagos | 930bfc0 | 2017-12-08 16:39:37 -0800 | [diff] [blame] | 34 | <!-- 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 Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 51 | <!-- The styling for the main headline text. The color of this text changes based on the |
| 52 | day/night mode. --> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 53 | <style name="CarHeadline1"> |
Anthony Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 54 | <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 Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 61 | <style name="CarHeadline2"> |
Anthony Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 62 | <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 Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 69 | <style name="CarHeadline3"> |
Anthony Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 70 | <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 Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 77 | <style name="CarHeadline4"> |
Anthony Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 78 | <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 Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 83 | <!-- The styling for body text. The color of this text changes based on the day/night mode. --> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 84 | <style name="CarBody1"> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 85 | <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 Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 92 | <style name="CarBody2"> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 93 | <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 Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 98 | <!-- A smaller styling for body text. The color of this text changes based on the day/night |
| 99 | mode. --> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 100 | <style name="CarBody3"> |
Anthony Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 101 | <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 Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 108 | <style name="CarBody4"> |
Anthony Chen | 3f37051 | 2017-10-24 06:48:34 -0700 | [diff] [blame] | 109 | <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 Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 114 | <!-- 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 Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 125 | |
Yao, Yuxing | 4e832ea | 2017-12-18 10:49:21 -0800 | [diff] [blame] | 126 | <!-- The styles for the regular and borderless buttons. --> |
Roshan Agrawal | c3c0695 | 2017-12-28 15:33:36 -0800 | [diff] [blame] | 127 | <style name="Widget.Car.Button" parent="Widget.AppCompat.Button"> |
Roshan Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 128 | <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 Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 132 | <item name="android:textSize">@dimen/car_action1_size</item> |
Roshan Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 133 | <item name="android:background">@drawable/car_button_background</item> |
Roshan Agrawal | c3c0695 | 2017-12-28 15:33:36 -0800 | [diff] [blame] | 134 | <item name="android:textColor">@drawable/car_button_text_color</item> |
Roshan Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 135 | </style> |
| 136 | |
Roshan Agrawal | c3c0695 | 2017-12-28 15:33:36 -0800 | [diff] [blame] | 137 | <style name="Widget.Car.Button.Borderless.Colored" |
| 138 | parent="Widget.AppCompat.Button.Borderless.Colored"> |
Roshan Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 139 | <item name="android:layout_height">@dimen/car_button_height</item> |
jovanak | 9fc7da4 | 2018-01-19 09:52:06 -0800 | [diff] [blame] | 140 | <item name="android:minWidth">@dimen/car_button_min_width</item> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 141 | <item name="android:paddingStart">@dimen/car_borderless_button_horizontal_padding</item> |
| 142 | <item name="android:paddingEnd">@dimen/car_borderless_button_horizontal_padding</item> |
Roshan Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 143 | <item name="android:textSize">@dimen/car_action1_size</item> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 144 | <item name="android:textColor">@drawable/car_borderless_button_text_color</item> |
Roshan Agrawal | b7a0a00 | 2017-11-01 15:48:54 -0700 | [diff] [blame] | 145 | </style> |
Roshan Agrawal | 6f47238 | 2017-12-04 14:06:31 -0800 | [diff] [blame] | 146 | |
Yao, Yuxing | 4e832ea | 2017-12-18 10:49:21 -0800 | [diff] [blame] | 147 | <!-- Style for the progress bars. --> |
Roshan Agrawal | c3c0695 | 2017-12-28 15:33:36 -0800 | [diff] [blame] | 148 | <style name="Widget.Car.ProgressBar.Horizontal" |
Roshan Agrawal | 7ea5b2d | 2017-12-18 18:21:14 -0800 | [diff] [blame] | 149 | 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 Agrawal | c3c0695 | 2017-12-28 15:33:36 -0800 | [diff] [blame] | 154 | <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 Agrawal | 7ea5b2d | 2017-12-18 18:21:14 -0800 | [diff] [blame] | 157 | </style> |
| 158 | |
Yao, Yuxing | 4e832ea | 2017-12-18 10:49:21 -0800 | [diff] [blame] | 159 | <!-- 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 Agrawal | c3c0695 | 2017-12-28 15:33:36 -0800 | [diff] [blame] | 166 | <style name="CarHintTextAppearance" parent="CarBody2"> |
Roshan Agrawal | 7ea5b2d | 2017-12-18 18:21:14 -0800 | [diff] [blame] | 167 | </style> |
Yao, Yuxing | 22037e6 | 2018-01-08 09:33:35 -0800 | [diff] [blame] | 168 | |
| 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 Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 176 | </resources> |