summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-22 23:28:55 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-22 23:28:55 +0000
commit0f34c5f771990b672566a8dcd455a58f8279c64e (patch)
treeeb840d344b0a979f9408193716b69652f97a214a
parentb56bbca1628b84f336c30c62c3757266907e927d (diff)
parent4e1ea35fa7e4b5764908093dff16fcdac52e9eef (diff)
Snap for 9794482 from 4e1ea35fa7e4b5764908093dff16fcdac52e9eef to tm-qpr3-release
Change-Id: If6eba1a44f29bb06c99fcf8d72c2918d53c85e48
-rw-r--r--res/drawable/gradient_black_scrim.xml39
-rw-r--r--res/layout/fragment_wallpaper_preview.xml2
-rwxr-xr-xres/values/colors.xml2
3 files changed, 41 insertions, 2 deletions
diff --git a/res/drawable/gradient_black_scrim.xml b/res/drawable/gradient_black_scrim.xml
new file mode 100644
index 00000000..494b3714
--- /dev/null
+++ b/res/drawable/gradient_black_scrim.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2023 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.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item>
+ <shape>
+ <gradient
+ android:angle="90"
+ android:startColor="@android:color/transparent"
+ android:centerColor="@android:color/transparent"
+ android:endColor="@color/wallpaper_preview_scrim_color"
+ android:centerY="0.8" />
+ </shape>
+ </item>
+
+ <item>
+ <shape>
+ <gradient
+ android:angle="90"
+ android:startColor="@color/wallpaper_preview_scrim_color"
+ android:centerColor="@android:color/transparent"
+ android:endColor="@android:color/transparent"
+ android:centerY="0.2" />
+ </shape>
+ </item>
+</layer-list> \ No newline at end of file
diff --git a/res/layout/fragment_wallpaper_preview.xml b/res/layout/fragment_wallpaper_preview.xml
index f6a9c707..ed8e2bb5 100644
--- a/res/layout/fragment_wallpaper_preview.xml
+++ b/res/layout/fragment_wallpaper_preview.xml
@@ -38,7 +38,7 @@
android:id="@+id/preview_scrim"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/wallpaper_preview_scrim_color"
+ android:background="@drawable/gradient_black_scrim"
android:importantForAccessibility="noHideDescendants" />
<androidx.constraintlayout.widget.ConstraintLayout
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 4268ddfd..a2567ef2 100755
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -55,5 +55,5 @@
<color name="text_color_secondary">@color/settingslib_text_color_secondary</color>
<color name="text_color_secondary_inverse">@color/settingslib_text_color_secondary_device_default</color>
- <color name="wallpaper_preview_scrim_color">#4d000000</color>
+ <color name="wallpaper_preview_scrim_color">#66000000</color>
</resources>