summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Lin <lbill@google.com>2021-06-04 23:03:08 +0800
committerBill Lin <lbill@google.com>2021-06-08 03:29:20 +0000
commitcc88f5ab09d7317ec4e99a1e225cf900bea2ed0f (patch)
tree23ca563a9144fd049566ffc4cb51e7a94944a1a7
parent81305c14463d5b0b98c06208a4ef705aac4921f3 (diff)
downloadbramble-cc88f5ab09d7317ec4e99a1e225cf900bea2ed0f.tar.gz
Customize adjustment for window rounded corner
Bramble rounded corner radius: 108px 15% Adjustment radius : 16px Test: make and flash Test: Trigger quick switch and observe window rounded corner Bug: 190139030 Change-Id: I3bbc866d58cebc9055f881db2f927fcb9689c15e
-rwxr-xr-xbramble/overlay/frameworks/base/core/res/res/values/config.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/bramble/overlay/frameworks/base/core/res/res/values/config.xml b/bramble/overlay/frameworks/base/core/res/res/values/config.xml
index bb23a8c..14b9d91 100755
--- a/bramble/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/bramble/overlay/frameworks/base/core/res/res/values/config.xml
@@ -221,6 +221,13 @@
<!-- Radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">108px</dimen>
+ <!-- Top adjustment for the software rounded corners since corners are not perfectly
+ round. This value is used when retrieving the "radius" of the rounded corner in cases
+ where the exact bezier curve cannot be retrieved. This value will be subtracted from
+ rounded_corner_radius to more accurately provide a "radius" for the rounded corners.
+ -->
+ <dimen name="rounded_corner_radius_adjustment">16px</dimen>
+
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_portrait">145px</dimen>