summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Lin <lbill@google.com>2021-06-08 19:19:34 +0800
committerBill Lin <lbill@google.com>2021-06-08 19:20:38 +0800
commitbfdafe205613e5f8a679450ab296862bd9c94268 (patch)
treed9aec950bf48dfe314c76ee36a4f67ed183fa618
parentdbe0e5d4e923bc4293248c6a37bda47ad7bbef23 (diff)
downloadredfin-bfdafe205613e5f8a679450ab296862bd9c94268.tar.gz
Customize adjustment for window rounded corner
Barbet rounded corner radius: 108px 8% Adjustment radius : 8px Test: make and flash Test: Trigger quick switch and observe window rounded corner Bug: 190139030 Change-Id: Ie6b90293e75049d887a663fd3418abbc738cb223
-rwxr-xr-xredfin/overlay/frameworks/base/core/res/res/values/config.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/redfin/overlay/frameworks/base/core/res/res/values/config.xml b/redfin/overlay/frameworks/base/core/res/res/values/config.xml
index 297950c..de49788 100755
--- a/redfin/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/redfin/overlay/frameworks/base/core/res/res/values/config.xml
@@ -228,6 +228,12 @@
<!-- 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">8px</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>