| <!-- |
| ~ Copyright (C) 2021 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 |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto"> |
| <!-- |
| Note on selected/unselected icons: |
| The icon is always tinted with @color/car_nav_icon_fill_color_selected in @layout/car_system_bar_button |
| Unselected: keep this behavior so all icons have consistent color (eg. tint a multi-colored default app icon) |
| Selected: set selected alpha 0, making icon transparent. Use state list nav_bar_button_background to show selected icon (in addition to background). |
| --> |
| <style name="SystemBarButton"> |
| <item name="android:layout_width">@dimen/system_bar_button_size</item> |
| <item name="android:layout_height">@dimen/system_bar_button_size</item> |
| <item name="android:layout_marginEnd">@dimen/system_bar_button_margin</item> |
| <item name="android:layout_marginStart">@dimen/system_bar_button_margin</item> |
| <item name="android:background">@drawable/nav_bar_button_background</item> |
| <item name="android:gravity">center</item> |
| <item name="unselectedAlpha">1.0</item> |
| <item name="selectedAlpha">1.0</item> |
| </style> |
| |
| <style name="CarTopSystemBarButton"> |
| <item name="android:layout_width">@dimen/top_system_bar_icon_size</item> |
| <item name="android:layout_height">@dimen/top_system_bar_icon_size</item> |
| <item name="android:layout_marginEnd">@dimen/top_system_bar_icon_horizontal_margin</item> |
| <item name="android:layout_marginStart">@dimen/top_system_bar_icon_horizontal_margin</item> |
| <item name="android:gravity">center</item> |
| </style> |
| |
| <style name="QCFooterButtonStyle" parent="android:Widget.DeviceDefault.Button"> |
| <item name="android:layout_width">match_parent</item> |
| <item name="android:layout_height">wrap_content</item> |
| <item name="android:layout_marginVertical">@dimen/car_quick_controls_footer_button_vertical_margin</item> |
| <item name="android:layout_marginHorizontal">@dimen/car_quick_controls_footer_button_horizontal_margin</item> |
| <item name="android:gravity">center</item> |
| </style> |
| |
| <style name="TextAppearance.TopSystemBar.Text" |
| parent="TextAppearance.Car.Subhead.Large"> |
| <item name="android:textColor">@color/car_on_surface</item> |
| </style> |
| |
| <style name="TextAppearance.QC" parent="android:TextAppearance.DeviceDefault"> |
| <item name="android:textColor">@color/car_on_surface</item> |
| </style> |
| |
| <style name="TextAppearance.QC.Title" parent="TextAppearance.Car.Body.Large"> |
| <item name="android:textColor">@color/car_on_surface</item> |
| </style> |
| |
| <style name="TextAppearance.QC.Subtitle" parent="TextAppearance.Car.Body.Small"> |
| <item name="android:textColor">@color/car_on_surface_variant</item> |
| </style> |
| |
| <style name="QuickControlEntryPointButton"> |
| <item name="android:layout_marginEnd">@dimen/top_system_bar_icon_horizontal_margin</item> |
| <item name="android:background">@drawable/status_icon_background</item> |
| <item name="android:layout_width">@dimen/top_system_bar_icon_size</item> |
| <item name="android:layout_height">@dimen/top_system_bar_icon_size</item> |
| </style> |
| |
| <style name="Theme.SystemUI.Dialog" parent="@android:style/Theme.DeviceDefault.Dialog"> |
| <item name="android:alertDialogStyle">@style/ScrollableAlertDialogStyle</item> |
| </style> |
| </resources> |