blob: 0a1528825d09396a6290684069fe5c2a6767bdd3 [file] [log] [blame]
John Spurlock2ebc54e2014-07-20 12:21:34 -04001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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
17<resources xmlns:android="http://schemas.android.com/apk/res/android">
18
Ivan Chiangbfa34ee2020-08-25 15:50:09 +080019 <style name="PickerDialogTheme"
20 parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
Ivan Chiangd6828c12020-06-11 17:37:51 +080021 <item name="android:windowNoTitle">true</item>
John Spurlock2ebc54e2014-07-20 12:21:34 -040022 </style>
23
shafik77ed67b2020-02-06 18:27:35 +000024 <style name="AlertDialogTheme"
Ivan Chiangbfa34ee2020-08-25 15:50:09 +080025 parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"/>
shafik77ed67b2020-02-06 18:27:35 +000026
shafikf9f900a2020-06-29 14:41:58 +010027 <style name="CacheClearingAlertDialogTheme"
Ivan Chiangbfa34ee2020-08-25 15:50:09 +080028 parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
shafik77ed67b2020-02-06 18:27:35 +000029 <item name="android:windowIsTranslucent">true</item>
30 <item name="android:windowBackground">@android:color/transparent</item>
31 <item name="android:windowContentOverlay">@null</item>
32 <item name="android:windowNoTitle">true</item>
33 <item name="android:windowIsFloating">true</item>
34 <item name="android:backgroundDimEnabled">true</item>
35 <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
36 </style>
37
Ivan Chiangf0fd46a2020-06-12 18:37:57 +080038 <style name="CacheClearingAlertDialogTitle"
39 parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
40 <item name="android:layout_width">match_parent</item>
41 <item name="android:layout_height">wrap_content</item>
42 <item name="android:gravity">center</item>
Ivan Chiang5e2efcb2021-03-23 16:04:23 +080043 <item name="android:textColor">?android:attr/textColorPrimary</item>
Ivan Chiangf0fd46a2020-06-12 18:37:57 +080044 <item name="android:textSize">16sp</item>
Ivan Chiang80116182020-07-22 15:35:42 +080045 <item name="android:textStyle">bold</item>
Ivan Chiangf0fd46a2020-06-12 18:37:57 +080046 </style>
47
Ivan Chiang5e2efcb2021-03-23 16:04:23 +080048 <style name="PermissionAlertDialogTitle"
49 parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle">
50 <item name="android:textColor">?android:attr/textColorPrimary</item>
51 </style>
Ivan Chiange89a1a42021-04-27 13:57:25 +080052
Ivan Chiang591c3d72021-11-18 17:42:53 +080053 <style name="MaterialBorderlessButtonStyle"
54 parent="@style/Widget.MaterialComponents.Button.TextButton">
55 <item name="android:textAppearance">@style/PickerButtonTextAppearance</item>
56 </style>
57
58 <style name="MaterialButtonStyle" parent="@style/Widget.MaterialComponents.Button">
59 <item name="android:textAppearance">@style/PickerButtonTextAppearance</item>
60 </style>
61
Abhijeet Kaur359c1d92021-08-17 19:49:00 +010062 <style name="ProfileDialogTheme"
63 parent="@style/ThemeOverlay.MaterialComponents.MaterialAlertDialog.Centered">
64 <item name="android:dialogCornerRadius">@dimen/picker_profile_dialog_radius</item>
65 <item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialogTitleStyle</item>
66 <item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialogBodyStyle</item>
67 <item name="materialAlertDialogTitleIconStyle">@style/MaterialAlertDialogIconStyle</item>
68 </style>
69
70 <style name="MaterialAlertDialogTitleStyle"
71 parent="@style/MaterialAlertDialog.MaterialComponents.Title.Text.CenterStacked">
72 <item name="android:textAppearance">@style/PickerProfileDialogTitle</item>
73 </style>
74
75 <style name="MaterialAlertDialogBodyStyle"
76 parent="@style/MaterialAlertDialog.MaterialComponents.Body.Text">
77 <item name="android:layout_width">match_parent</item>
78 <item name="android:layout_height">wrap_content</item>
79 <item name="android:textAppearance">@style/PickerProfileDialogBody</item>
80 </style>
81
82 <style name="MaterialAlertDialogIconStyle"
83 parent="@style/MaterialAlertDialog.MaterialComponents.Title.Icon.CenterStacked">
84 <item name="android:tint">@color/picker_profile_dialog_icon_and_button_color</item>
85 <item name="android:layout_width">@dimen/picker_profile_dialog_icon_width</item>
86 <item name="android:layout_height">@dimen/picker_profile_dialog_icon_height</item>
87 </style>
88
Ivan Chiang3d6ce0a2021-10-20 09:47:38 +080089 <style name="PickerDefaultTheme" parent="android:style/Theme.DeviceDefault.DayNight">
Ivan Chiange89a1a42021-04-27 13:57:25 +080090 <!-- Color section -->
Ivan Chiangb7afd1c2021-05-25 10:37:08 +080091 <item name="android:colorAccent">@color/picker_primary_color</item>
Ivan Chiang010d88a2021-06-25 18:51:04 +080092 <item name="android:colorBackground">@color/picker_background_color</item>
Ivan Chiange89a1a42021-04-27 13:57:25 +080093
94 <!-- System | Widget section -->
Ivan Chiang3d6ce0a2021-10-20 09:47:38 +080095 <item name="android:backgroundDimEnabled">true</item>
96 <item name="android:navigationBarColor">?android:attr/colorBackground</item>
Abhijeet Kaur911c8f62021-07-07 13:13:09 +010097 <item name="android:statusBarColor">@android:color/transparent</item>
Abhijeet Kaur911c8f62021-07-07 13:13:09 +010098 <item name="android:windowBackground">@android:color/transparent</item>
99 <item name="android:windowIsTranslucent">true</item>
Ivan Chiang3d6ce0a2021-10-20 09:47:38 +0800100 <item name="android:windowNoTitle">true</item>
101 </style>
102
103 <style name="PickerMaterialTheme" parent="@style/Theme.MaterialComponents.DayNight.NoActionBar">
Abhijeet Kaur359c1d92021-08-17 19:49:00 +0100104 <item name="materialAlertDialogTheme">@style/ProfileDialogTheme</item>
Ivan Chiange89a1a42021-04-27 13:57:25 +0800105 </style>
106
John Spurlock2ebc54e2014-07-20 12:21:34 -0400107</resources>