John Spurlock | 2ebc54e | 2014-07-20 12:21:34 -0400 | [diff] [blame] | 1 | <?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 Chiang | bfa34ee | 2020-08-25 15:50:09 +0800 | [diff] [blame] | 19 | <style name="PickerDialogTheme" |
| 20 | parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"> |
Ivan Chiang | d6828c1 | 2020-06-11 17:37:51 +0800 | [diff] [blame] | 21 | <item name="android:windowNoTitle">true</item> |
John Spurlock | 2ebc54e | 2014-07-20 12:21:34 -0400 | [diff] [blame] | 22 | </style> |
| 23 | |
shafik | 77ed67b | 2020-02-06 18:27:35 +0000 | [diff] [blame] | 24 | <style name="AlertDialogTheme" |
Ivan Chiang | bfa34ee | 2020-08-25 15:50:09 +0800 | [diff] [blame] | 25 | parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"/> |
shafik | 77ed67b | 2020-02-06 18:27:35 +0000 | [diff] [blame] | 26 | |
shafik | f9f900a | 2020-06-29 14:41:58 +0100 | [diff] [blame] | 27 | <style name="CacheClearingAlertDialogTheme" |
Ivan Chiang | bfa34ee | 2020-08-25 15:50:09 +0800 | [diff] [blame] | 28 | parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"> |
shafik | 77ed67b | 2020-02-06 18:27:35 +0000 | [diff] [blame] | 29 | <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 Chiang | f0fd46a | 2020-06-12 18:37:57 +0800 | [diff] [blame] | 38 | <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 Chiang | 5e2efcb | 2021-03-23 16:04:23 +0800 | [diff] [blame] | 43 | <item name="android:textColor">?android:attr/textColorPrimary</item> |
Ivan Chiang | f0fd46a | 2020-06-12 18:37:57 +0800 | [diff] [blame] | 44 | <item name="android:textSize">16sp</item> |
Ivan Chiang | 8011618 | 2020-07-22 15:35:42 +0800 | [diff] [blame] | 45 | <item name="android:textStyle">bold</item> |
Ivan Chiang | f0fd46a | 2020-06-12 18:37:57 +0800 | [diff] [blame] | 46 | </style> |
| 47 | |
Ivan Chiang | 5e2efcb | 2021-03-23 16:04:23 +0800 | [diff] [blame] | 48 | <style name="PermissionAlertDialogTitle" |
| 49 | parent="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"> |
| 50 | <item name="android:textColor">?android:attr/textColorPrimary</item> |
| 51 | </style> |
Ivan Chiang | e89a1a4 | 2021-04-27 13:57:25 +0800 | [diff] [blame] | 52 | |
Ivan Chiang | 591c3d7 | 2021-11-18 17:42:53 +0800 | [diff] [blame^] | 53 | <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 Kaur | 359c1d9 | 2021-08-17 19:49:00 +0100 | [diff] [blame] | 62 | <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 Chiang | e89a1a4 | 2021-04-27 13:57:25 +0800 | [diff] [blame] | 89 | <style name="PickerDefaultTheme" parent="@style/Theme.MaterialComponents.DayNight.NoActionBar"> |
| 90 | <!-- Color section --> |
Ivan Chiang | b7afd1c | 2021-05-25 10:37:08 +0800 | [diff] [blame] | 91 | <item name="android:colorAccent">@color/picker_primary_color</item> |
Ivan Chiang | 010d88a | 2021-06-25 18:51:04 +0800 | [diff] [blame] | 92 | <item name="android:colorBackground">@color/picker_background_color</item> |
Ivan Chiang | e89a1a4 | 2021-04-27 13:57:25 +0800 | [diff] [blame] | 93 | |
| 94 | <!-- System | Widget section --> |
Abhijeet Kaur | 911c8f6 | 2021-07-07 13:13:09 +0100 | [diff] [blame] | 95 | <item name="android:statusBarColor">@android:color/transparent</item> |
Ivan Chiang | e89a1a4 | 2021-04-27 13:57:25 +0800 | [diff] [blame] | 96 | <item name="android:navigationBarColor">?android:colorBackground</item> |
Abhijeet Kaur | 911c8f6 | 2021-07-07 13:13:09 +0100 | [diff] [blame] | 97 | <item name="android:windowBackground">@android:color/transparent</item> |
| 98 | <item name="android:windowIsTranslucent">true</item> |
| 99 | <item name="android:backgroundDimEnabled">true</item> |
Abhijeet Kaur | 359c1d9 | 2021-08-17 19:49:00 +0100 | [diff] [blame] | 100 | <item name="materialAlertDialogTheme">@style/ProfileDialogTheme</item> |
Ivan Chiang | e89a1a4 | 2021-04-27 13:57:25 +0800 | [diff] [blame] | 101 | </style> |
| 102 | |
John Spurlock | 2ebc54e | 2014-07-20 12:21:34 -0400 | [diff] [blame] | 103 | </resources> |