• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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 xmlns:android="http://schemas.android.com/apk/res/android">
17    <style name="Widget.CarUi" parent="android:Widget.DeviceDefault"/>
18
19    <style name="Widget.CarUi.Toolbar"/>
20
21    <style name="Widget.CarUi.Toolbar.NavIconContainer">
22        <item name="android:layout_marginVertical">10dp</item>
23        <item name="android:layout_marginHorizontal">18dp</item>
24        <item name="android:background">@drawable/car_ui_toolbar_menu_item_icon_ripple</item>
25    </style>
26
27    <style name="Widget.CarUi.Toolbar.NavIcon">
28        <item name="android:tint">@color/car_ui_text_color_primary</item>
29        <item name="android:src">@drawable/car_ui_icon_arrow_back</item>
30    </style>
31
32    <style name="Widget.CarUi.Toolbar.MenuItem"/>
33
34    <style name="Widget.CarUi.Toolbar.MenuItem.IndividualContainer">
35        <item name="android:minHeight">76dp</item>
36        <item name="android:minWidth">76dp</item>
37        <item name="android:background">@drawable/car_ui_toolbar_menu_item_icon_ripple</item>
38        <item name="android:focusable">true</item>
39    </style>
40
41    <style name="Widget.CarUi.Button.Borderless.Colored"
42           parent="android:Widget.DeviceDefault.Button.Borderless.Colored"/>
43
44    <style name="Widget.CarUi.Button"
45           parent="android:Widget.DeviceDefault.Button"/>
46
47    <style name="Widget.CarUi.Toolbar.TextButton" parent="Widget.CarUi.Button.Borderless.Colored">
48        <item name="android:drawableTint">@color/car_ui_toolbar_menu_item_icon_color</item>
49        <item name="android:drawablePadding">10dp</item>
50        <item name="android:maxWidth">350dp</item>
51    </style>
52
53    <style name="Widget.CarUi.Toolbar.TextButton.WithIcon">
54        <item name="android:textColor">@color/car_ui_toolbar_menu_item_icon_color</item>
55    </style>
56
57    <style name="Widget.CarUi.Toolbar.TextButton.Primary" parent="Widget.CarUi.Button">
58        <item name="android:drawableTint">@color/car_ui_toolbar_menu_item_icon_color</item>
59        <item name="android:drawablePadding">10dp</item>
60        <item name="android:maxWidth">350dp</item>
61    </style>
62
63    <style name="Widget.CarUi.SeekbarPreference"/>
64
65    <!-- Style applied to the seekbar widget within the seekbar preference -->
66    <style name="Widget.CarUi.SeekbarPreference.Seekbar">
67        <item name="android:background">@null</item>
68        <item name="android:clickable">false</item>
69        <item name="android:focusable">false</item>
70        <item name="android:thumb">@drawable/car_ui_seekbar_thumb</item>
71        <item name="android:splitTrack">false</item>
72    </style>
73
74    <style name="TextAppearance.CarUi" parent="android:TextAppearance.DeviceDefault">
75        <item name="android:textColor">@color/car_ui_text_color_primary</item>
76        <item name="android:textAlignment">viewStart</item>
77    </style>
78
79    <style name="TextAppearance.CarUi.Body1">
80        <item name="android:textSize">32sp</item>
81    </style>
82
83    <style name="TextAppearance.CarUi.PreferenceCategoryTitle" parent="TextAppearance.CarUi.Body3">
84        <item name="android:fontFamily">sans-serif-medium</item>
85    </style>
86
87    <style name="TextAppearance.CarUi.PreferenceTitle" parent="TextAppearance.CarUi.Body1"/>
88
89    <style name="TextAppearance.CarUi.Body3">
90        <item name="android:textSize">24sp</item>
91    </style>
92
93    <style name="TextAppearance.CarUi.PreferenceSummary" parent="TextAppearance.CarUi.Body3">
94        <item name="android:textColor">@color/car_ui_text_color_secondary</item>
95    </style>
96
97</resources>
98