From 9f9a33218cf505e627eeaa0eaa78176ad2cbc820 Mon Sep 17 00:00:00 2001 From: Evan Laird Date: Tue, 20 Sep 2022 19:51:11 +0000 Subject: [PATCH] Update device corners and holepunch This CL updates the paths for the corners as well as small adjustments to the front-facing holepunch camera. Test: adb shell setprop debug.screenshot_rounded_corners 1 // then restart sysui Bug: 238416581 Change-Id: Idfe83b9732b30a8fff92ed1eb5bc8959ab1526eb --- .../base/core/res/res/values/config.xml | 2 +- .../res/drawable/rounded_corner_bottom.xml | 12 +++++------- .../SystemUI/res/drawable/rounded_corner_top.xml | 12 +++++------- .../res/drawable/rounded_corner_bottom.xml | 15 ++++++--------- .../SystemUI/res/drawable/rounded_corner_top.xml | 15 ++++++--------- 5 files changed, 23 insertions(+), 33 deletions(-) diff --git a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml index 8143486..8fb9fd2 100644 --- a/cheetah/overlay/frameworks/base/core/res/res/values/config.xml +++ b/cheetah/overlay/frameworks/base/core/res/res/values/config.xml @@ -51,7 +51,7 @@ - M 676,72 + M 677,72 a 43,43 0 1 0 86,0 a 43,43 0 1 0 -86,0 Z diff --git a/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml b/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml index 016390f..d561d3d 100644 --- a/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml +++ b/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml @@ -12,13 +12,11 @@ limitations under the License. --> - + android:width="121px" + android:height="121px" + android:viewportWidth="13.14" + android:viewportHeight="13.14"> + android:pathData="M13.1,0c-0.94,0 -1.87,0 -2.81,0.01c-0.94,0.01 -1.87,0.04 -2.8,0.17c-1.89,0.26 -3.62,0.92 -5,2.31C1.1,3.87 0.43,5.6 0.17,7.49c-0.13,0.93 -0.16,1.86 -0.17,2.8C0,11.22 0,12.16 0,13.1c0,0.02 0,0.03 0,0.05C0,8.76 0,4.38 0,0c4.38,0 8.76,0 13.14,0C13.13,0 13.11,0 13.1,0z"/> - diff --git a/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml b/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml index c1ab6e1..d561d3d 100644 --- a/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml +++ b/cheetah/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml @@ -12,13 +12,11 @@ limitations under the License. --> - + android:width="121px" + android:height="121px" + android:viewportWidth="13.14" + android:viewportHeight="13.14"> + android:pathData="M13.1,0c-0.94,0 -1.87,0 -2.81,0.01c-0.94,0.01 -1.87,0.04 -2.8,0.17c-1.89,0.26 -3.62,0.92 -5,2.31C1.1,3.87 0.43,5.6 0.17,7.49c-0.13,0.93 -0.16,1.86 -0.17,2.8C0,11.22 0,12.16 0,13.1c0,0.02 0,0.03 0,0.05C0,8.76 0,4.38 0,0c4.38,0 8.76,0 13.14,0C13.13,0 13.11,0 13.1,0z"/> - diff --git a/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml b/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml index d4bd012..0601a6d 100644 --- a/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml +++ b/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml @@ -12,14 +12,11 @@ limitations under the License. --> - + android:width="76px" + android:height="76px" + android:viewportWidth="13.14" + android:viewportHeight="13.1"> - + android:fillColor="#FF000000" + android:pathData="M13.1,0c-0.94,0 -1.87,0 -2.81,0.01c-0.94,0.01 -1.87,0.04 -2.8,0.17c-1.89,0.26 -3.62,0.92 -5,2.31C1.1,3.87 0.43,5.6 0.17,7.49c-0.13,0.93 -0.16,1.86 -0.17,2.8C0,11.22 0,12.16 0,13.1c0,0.02 0,0.03 0,0.05C0,8.76 0,4.38 0,0c4.38,0 8.76,0 13.14,0C13.13,0 13.11,0 13.1,0z"/> - diff --git a/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml b/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml index f8f46dc..0601a6d 100644 --- a/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml +++ b/panther/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml @@ -12,14 +12,11 @@ limitations under the License. --> - + android:width="76px" + android:height="76px" + android:viewportWidth="13.14" + android:viewportHeight="13.1"> - + android:fillColor="#FF000000" + android:pathData="M13.1,0c-0.94,0 -1.87,0 -2.81,0.01c-0.94,0.01 -1.87,0.04 -2.8,0.17c-1.89,0.26 -3.62,0.92 -5,2.31C1.1,3.87 0.43,5.6 0.17,7.49c-0.13,0.93 -0.16,1.86 -0.17,2.8C0,11.22 0,12.16 0,13.1c0,0.02 0,0.03 0,0.05C0,8.76 0,4.38 0,0c4.38,0 8.76,0 13.14,0C13.13,0 13.11,0 13.1,0z"/> -