From 2320e509ebe8b98a6279d74905928ef74d429634 Mon Sep 17 00:00:00 2001 From: Miranda Kephart Date: Thu, 30 Apr 2020 20:47:47 -0400 Subject: [PATCH] Update screenshot dark mode to spec Makes the background protection scrim slightly taller in dark mode, and makes the light mode scrim darker (25% opacity at the bottom). Test: manual Bug: 155416835 Fix: 155416835 Change-Id: I3c5f9f75654b4c359cc0b1486d79f7fdeea7b6af --- .../res/drawable/screenshot_actions_background_protection.xml | 2 +- packages/SystemUI/res/layout/global_screenshot.xml | 2 +- packages/SystemUI/res/values-night/colors.xml | 1 + packages/SystemUI/res/values-night/dimens.xml | 4 ++++ packages/SystemUI/res/values/colors.xml | 1 + packages/SystemUI/res/values/dimens.xml | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/drawable/screenshot_actions_background_protection.xml b/packages/SystemUI/res/drawable/screenshot_actions_background_protection.xml index 163015b7b0f07..21013c6c7b164 100644 --- a/packages/SystemUI/res/drawable/screenshot_actions_background_protection.xml +++ b/packages/SystemUI/res/drawable/screenshot_actions_background_protection.xml @@ -17,6 +17,6 @@ \ No newline at end of file diff --git a/packages/SystemUI/res/layout/global_screenshot.xml b/packages/SystemUI/res/layout/global_screenshot.xml index de19303b4948d..1dbb38d5dc7a1 100644 --- a/packages/SystemUI/res/layout/global_screenshot.xml +++ b/packages/SystemUI/res/layout/global_screenshot.xml @@ -22,7 +22,7 @@ android:layout_height="match_parent"> @color/GM2_blue_300 @color/GM2_grey_800 #FFFFFF + #80000000 diff --git a/packages/SystemUI/res/values-night/dimens.xml b/packages/SystemUI/res/values-night/dimens.xml index 481483991de92..23e3231128450 100644 --- a/packages/SystemUI/res/values-night/dimens.xml +++ b/packages/SystemUI/res/values-night/dimens.xml @@ -18,4 +18,8 @@ 1dp + + + 375dp + \ No newline at end of file diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 82eda311da6ae..b6776005d83e6 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -200,6 +200,7 @@ @color/GM2_blue_500 #FFFFFF @color/GM2_grey_500 + #40000000 #F8F9FA diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 7073ffd8d1dd2..45f7ce5ed9202 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -306,6 +306,7 @@ 20dp 400dp 80dp + 242dp 6dp 48dp 16dp