1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2022 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<resources> 18 <style name="Theme.PlatformUi.Screenshot" parent="Theme.PlatformUi.DayAndNightScreenshot"> 19 <item name="android:windowActionBar">false</item> 20 <item name="android:windowNoTitle">true</item> 21 22 <!-- We make the status and navigation bars transparent so that the screenshotted content is 23 not clipped by the status bar height when drawn into the Bitmap (which is what happens 24 given that we draw the view into the Bitmap using hardware acceleration). --> 25 <item name="android:statusBarColor">@android:color/transparent</item> 26 <item name="android:navigationBarColor">@android:color/transparent</item> 27 28 <!-- Make sure that device specific cutouts don't impact the outcome of screenshot tests --> 29 <item name="android:windowLayoutInDisplayCutoutMode">always</item> 30 31 <!-- 32 TODO(b/309578419): Make activities handle insets properly and then remove this. 33 --> 34 <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item> 35 </style> 36 37 <style name="Theme.PlatformUi.Dialog.Screenshot" parent="Theme.PlatformUi.Dialog.DayAndNightScreenshot" /> 38 39 <style name="Theme.PlatformUi.Dialog.Screenshot.MinWidth" parent="Theme.PlatformUi.Dialog.Screenshot"> 40 <item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item> 41 <item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item> 42 </style> 43 44 <style name="Theme.PlatformUi.DayAndNightScreenshot" parent="Theme.SystemUI"> 45 <!-- Hardcode the material colors so that screenshot tests don't depend on colors that will 46 change with the device wallpaper. These colors were frozen when using the same color 47 configuration as the MaterialYouColorsRule. --> 48 <item name="*android:materialColorOnSecondaryFixedVariant">#00513C</item> 49 <item name="*android:materialColorOnTertiaryFixedVariant">#004E5F</item> 50 <item name="*android:materialColorSurfaceContainerLowest">#FFFFFF</item> 51 <item name="*android:materialColorOnPrimaryFixedVariant">#00513C</item> 52 <item name="*android:materialColorOnSecondaryContainer">#002116</item> 53 <item name="*android:materialColorOnTertiaryContainer">#001F27</item> 54 <item name="*android:materialColorSurfaceContainerLow">#E9F6FB</item> 55 <item name="*android:materialColorOnPrimaryContainer">#002116</item> 56 <item name="*android:materialColorSecondaryFixedDim">#8AD6B7</item> 57 <item name="*android:materialColorOnErrorContainer">#410002</item> 58 <item name="*android:materialColorOnSecondaryFixed">#002116</item> 59 <item name="*android:materialColorOnSurfaceInverse">#D8E4EA</item> 60 <item name="*android:materialColorTertiaryFixedDim">#86D1E9</item> 61 <item name="*android:materialColorOnTertiaryFixed">#001F27</item> 62 <item name="*android:materialColorPrimaryFixedDim">#66DBB2</item> 63 <item name="*android:materialColorSecondaryContainer">#A5F2D3</item> 64 <item name="*android:materialColorErrorContainer">#FFDAD6</item> 65 <item name="*android:materialColorOnPrimaryFixed">#002116</item> 66 <item name="*android:materialColorPrimaryInverse">#66DBB2</item> 67 <item name="*android:materialColorSecondaryFixed">#A5F2D3</item> 68 <item name="*android:materialColorTertiaryContainer">#B2EBFF</item> 69 <item name="*android:materialColorTertiaryFixed">#B2EBFF</item> 70 <item name="*android:materialColorPrimaryContainer">#83F8CD</item> 71 <item name="*android:materialColorOnBackground">#121D21</item> 72 <item name="*android:materialColorPrimaryFixed">#83F8CD</item> 73 <item name="*android:materialColorOnSecondary">#FFFFFF</item> 74 <item name="*android:materialColorOnTertiary">#FFFFFF</item> 75 <item name="*android:materialColorOnError">#FFFFFF</item> 76 <item name="*android:materialColorOnSurfaceVariant">#344A52</item> 77 <item name="*android:materialColorOutline">#647B83</item> 78 <item name="*android:materialColorOutlineVariant">#B3CAD3</item> 79 <item name="*android:materialColorOnPrimary">#FFFFFF</item> 80 <item name="*android:materialColorOnSurface">#121D21</item> 81 <item name="*android:materialColorPrimary">#006C51</item> 82 <item name="*android:materialColorSecondary">#196B52</item> 83 <item name="*android:materialColorTertiary">#00677D</item> 84 <item name="*android:materialColorSurfaceInverse">#0A1519</item> 85 <item name="*android:materialColorSurfaceVariant">#CEE6F0</item> 86 <item name="*android:materialColorSurfaceDim">#D0DCE1</item> 87 <item name="*android:materialColorSurfaceBright">#F2FBFF</item> 88 <item name="*android:materialColorSurface">#F2FBFF</item> 89 <item name="*android:materialColorSurfaceContainerHigh">#DEEAEF</item> 90 <item name="*android:materialColorSurfaceContainerHighest">#D8E4EA</item> 91 <item name="*android:materialColorSurfaceContainer">#E4F0F5</item> 92 </style> 93 94 <style name="Theme.PlatformUi.Dialog.DayAndNightScreenshot" parent="Theme.SystemUI.Dialog"> 95 <!-- Hardcode the material colors so that screenshot tests don't depend on colors that will 96 change with the device wallpaper. These colors were frozen when using the same color 97 configuration as the MaterialYouColorsRule. --> 98 <item name="*android:materialColorOnSecondaryFixedVariant">#00513C</item> 99 <item name="*android:materialColorOnTertiaryFixedVariant">#004E5F</item> 100 <item name="*android:materialColorSurfaceContainerLowest">#FFFFFF</item> 101 <item name="*android:materialColorOnPrimaryFixedVariant">#00513C</item> 102 <item name="*android:materialColorOnSecondaryContainer">#002116</item> 103 <item name="*android:materialColorOnTertiaryContainer">#001F27</item> 104 <item name="*android:materialColorSurfaceContainerLow">#E9F6FB</item> 105 <item name="*android:materialColorOnPrimaryContainer">#002116</item> 106 <item name="*android:materialColorSecondaryFixedDim">#8AD6B7</item> 107 <item name="*android:materialColorOnErrorContainer">#410002</item> 108 <item name="*android:materialColorOnSecondaryFixed">#002116</item> 109 <item name="*android:materialColorOnSurfaceInverse">#D8E4EA</item> 110 <item name="*android:materialColorTertiaryFixedDim">#86D1E9</item> 111 <item name="*android:materialColorOnTertiaryFixed">#001F27</item> 112 <item name="*android:materialColorPrimaryFixedDim">#66DBB2</item> 113 <item name="*android:materialColorSecondaryContainer">#A5F2D3</item> 114 <item name="*android:materialColorErrorContainer">#FFDAD6</item> 115 <item name="*android:materialColorOnPrimaryFixed">#002116</item> 116 <item name="*android:materialColorPrimaryInverse">#66DBB2</item> 117 <item name="*android:materialColorSecondaryFixed">#A5F2D3</item> 118 <item name="*android:materialColorTertiaryContainer">#B2EBFF</item> 119 <item name="*android:materialColorTertiaryFixed">#B2EBFF</item> 120 <item name="*android:materialColorPrimaryContainer">#83F8CD</item> 121 <item name="*android:materialColorOnBackground">#121D21</item> 122 <item name="*android:materialColorPrimaryFixed">#83F8CD</item> 123 <item name="*android:materialColorOnSecondary">#FFFFFF</item> 124 <item name="*android:materialColorOnTertiary">#FFFFFF</item> 125 <item name="*android:materialColorOnError">#FFFFFF</item> 126 <item name="*android:materialColorOnSurfaceVariant">#344A52</item> 127 <item name="*android:materialColorOutline">#647B83</item> 128 <item name="*android:materialColorOutlineVariant">#B3CAD3</item> 129 <item name="*android:materialColorOnPrimary">#FFFFFF</item> 130 <item name="*android:materialColorOnSurface">#121D21</item> 131 <item name="*android:materialColorPrimary">#006C51</item> 132 <item name="*android:materialColorSecondary">#196B52</item> 133 <item name="*android:materialColorTertiary">#00677D</item> 134 <item name="*android:materialColorSurfaceInverse">#0A1519</item> 135 <item name="*android:materialColorSurfaceVariant">#CEE6F0</item> 136 <item name="*android:materialColorSurfaceDim">#D0DCE1</item> 137 <item name="*android:materialColorSurfaceBright">#F2FBFF</item> 138 <item name="*android:materialColorSurface">#F2FBFF</item> 139 <item name="*android:materialColorSurfaceContainerHigh">#DEEAEF</item> 140 <item name="*android:materialColorSurfaceContainerHighest">#D8E4EA</item> 141 <item name="*android:materialColorSurfaceContainer">#E4F0F5</item> 142 </style> 143</resources> 144