From 7e94e6fd044aa1dd7228b14e77d2a4f89e4dfedf Mon Sep 17 00:00:00 2001 From: yankarinRG Date: Thu, 23 Apr 2020 15:12:45 +0200 Subject: [PATCH] davinci: overlay: Configure proper rounded corners - changed out the path defining the software rounded corners to exactly match the hardware curve - found the radius that would provide the most anti-aliasing without increasing the radius of the corner - rounded corners should be in px instead of dp, so on display size change corners don't change - moved some configs to right place Test: visual inspection. The corners should be perfectly rounded and anti-aliased, without jagged edges Change-Id: Iecb3d627ed043e99d7ce38c6f214cea90f100c41 --- .../base/core/res/res/values/config.xml | 9 ++----- .../SystemUI/res/drawable/rounded.xml | 20 ++++++++++++++ .../packages/SystemUI/res/values/config.xml | 26 +++++++++++++++++++ 3 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml create mode 100644 overlay/frameworks/base/packages/SystemUI/res/values/config.xml diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index d0e4875..0a03874 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -597,13 +597,8 @@ 35.0dip - - 84.0px - - - 84.0px + + 103px diff --git a/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml new file mode 100644 index 0000000..74811c6 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml new file mode 100644 index 0000000..46738ec --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -0,0 +1,26 @@ + + + + + + M22,0C19.94,0.01 18.83,0.04 17.73,0.11C16.91,0.17 16.09,0.25 15.3,0.36C14.5,0.48 13.72,0.62 12.95,0.81C11.42,1.19 9.97,1.72 8.65,2.43C7.32,3.14 6.12,4.02 5.08,5.07C4.04,6.11 3.15,7.31 2.44,8.64C1.73,9.97 1.19,11.42 0.82,12.94C0.63,13.7 0.48,14.49 0.37,15.29C0.25,16.09 0.17,16.9 0.12,17.72C0.05,18.82 0.02,19.93 0.01,21.55 +