1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<resources xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
20    <style name="Theme.SystemUI.Dialog" parent="@android:style/Theme.DeviceDefault.Dialog" />
21    <style name="Theme.SystemUI.Dialog.Alert" parent="@*android:style/Theme.DeviceDefault.Dialog.Alert" />
22
23    <style name="Animation.ShutdownUi">
24        <item name="android:windowEnterAnimation">@null</item>
25        <item name="android:windowExitAnimation">@null</item>
26    </style>
27
28    <style name="PrivacyChip">
29        <item name="android:colorError">@color/cast_connected_fill</item>
30    </style>
31
32    <style name="SidePanel" parent="Theme.Leanback">
33        <item name="android:windowIsFloating">true</item>
34        <item name="android:windowIsTranslucent">true</item>
35        <item name="android:backgroundDimAmount">0.6</item>
36    </style>
37
38    <style name="BottomSheet" parent="Theme.Leanback">
39        <item name="android:windowIsFloating">true</item>
40        <item name="android:windowActivityTransitions">true</item>
41        <item name="android:windowNoTitle">true</item>
42        <item name="android:windowIsTranslucent">true</item>
43        <item name="android:backgroundDimAmount">0.2</item>
44    </style>
45
46    <style name="BottomSheet.TitleText">
47        <item name="android:textSize">28sp</item>
48        <item name="android:textColor">@color/bottom_sheet_title_color</item>
49    </style>
50
51    <style name="BottomSheet.BodyText">
52        <item name="android:textSize">16sp</item>
53        <item name="android:textColor">@color/bottom_sheet_body_color</item>
54    </style>
55
56    <style name="BottomSheet.ActionItem">
57        <item name="android:layout_width">@dimen/bottom_sheet_button_width</item>
58        <item name="android:layout_height">wrap_content</item>
59        <item name="android:gravity">start|center_vertical</item>
60        <item name="android:textSize">16sp</item>
61        <item name="android:textColor">@color/bottom_sheet_button_text_color</item>
62        <item name="android:background">@drawable/bottom_sheet_button_background</item>
63        <item name="android:paddingHorizontal">@dimen/bottom_sheet_button_padding_horizontal</item>
64        <item name="android:paddingVertical">@dimen/bottom_sheet_button_padding_vertical</item>
65        <item name="android:stateListAnimator">@anim/bottom_sheet_button_state_list_animator</item>
66    </style>
67
68    <!-- The style for log access consent button -->
69    <style name="LogAccessDialogTheme" parent="@android:style/Theme.DeviceDefault.Dialog.Alert">
70        <item name="permissionGrantButtonTopStyle">?android:buttonBarButtonStyle</item>
71        <item name="permissionGrantButtonBottomStyle">?android:buttonBarButtonStyle</item>
72    </style>
73
74    <style name="PipTheme" parent="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
75        <item name="android:windowBackground">@android:color/transparent</item>
76        <item name="android:backgroundDimEnabled">false</item>
77        <item name="android:windowDisablePreview">true</item>
78    </style>
79
80    <style name="TvSidePanelTheme">
81        <item name="android:windowIsTranslucent">true</item>
82        <item name="android:windowBackground">@android:color/transparent</item>
83        <item name="android:backgroundDimEnabled">false</item>
84        <item name="android:windowNoTitle">true</item>
85        <item name="android:windowContentOverlay">@null</item>
86        <item name="android:windowIsFloating">true</item>
87    </style>
88</resources>
89