blob: b5f46f82745b2065c8cec337c6d062393652d1fa [file] [log] [blame]
<!--
~ 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">
<!--
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:background">@drawable/nav_bar_button_background</item>
<item name="android:gravity">center</item>
<item name="unselectedAlpha">1.0</item>
<item name="selectedAlpha">0</item>
</style>
<style name="TextAppearance.SystemBar.Username"
parent="@android:style/TextAppearance.DeviceDefault">
<item name="android:textSize">@dimen/car_body1_size</item>
<item name="android:textColor">@color/system_bar_text_color</item>
</style>
</resources>