lisa: overlay: Enable anti-aliasing for rounded corners
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Change-Id: I5eac23d9f8bfa3de43f0a8ad26aa7300a1f06f95 Signed-off-by: Bartłomiej Rudecki <przekichane@icloud.com>
This commit is contained in:
parent
b397a41f6a
commit
b69f25371e
@ -5,11 +5,12 @@
|
|||||||
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
<!-- Radius of the software rounded corners at the top of the display in its natural
|
<!-- the padding of the rounded corner -->
|
||||||
orientation. If zero, the value of rounded_corner_radius is used. -->
|
<dimen name="rounded_corner_content_padding">16dp</dimen>
|
||||||
<dimen name="rounded_corner_radius_top">102px</dimen>
|
|
||||||
|
|
||||||
<!-- Radius of the software rounded corners at the bottom of the display in its natural
|
<!-- Radius of the software rounded corners of the display in it's natural orientation-->
|
||||||
orientation. If zero, the value of rounded_corner_radius is used. -->
|
<dimen name="rounded_corner_radius">126px</dimen>
|
||||||
<dimen name="rounded_corner_radius_bottom">102px</dimen>
|
|
||||||
|
<!-- Adjustment for software rounded corners since corners aren't perfectly round. -->
|
||||||
|
<dimen name="rounded_corner_radius_adjustment">30px</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
<!--
|
||||||
|
Copyright (C) 2020 The Android Open Source Project
|
||||||
|
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="260px"
|
||||||
|
android:height="237px"
|
||||||
|
android:viewportWidth="260.0"
|
||||||
|
android:viewportHeight="237.0">
|
||||||
|
|
||||||
|
<path
|
||||||
|
android:pathData="M259.51,0C226.69,0 180.55,-0.1 147.73,0.89C137.84,1.19 127.96,1.6 118.09,2.3C109.36,2.92 100.68,3.76 92.02,5.14C73.26,8.13 56.11,13.49 40.55,25.27C32.5,31.36 25.5,38.72 19.83,47.06C14.93,54.25 11.23,61.78 8.47,70.03C5.73,78.23 4.15,86.55 3.09,95.11C1.86,105.12 1.33,115.14 0.96,125.21C-0.11,154.31 0,207.89 0,237L0,0L259.51,0Z"
|
||||||
|
android:fillColor="#000000" />
|
||||||
|
</vector>
|
@ -0,0 +1,23 @@
|
|||||||
|
<!--
|
||||||
|
Copyright (C) 2020 The Android Open Source Project
|
||||||
|
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="218px"
|
||||||
|
android:height="218px"
|
||||||
|
android:viewportWidth="218.0"
|
||||||
|
android:viewportHeight="218.0">
|
||||||
|
|
||||||
|
<path
|
||||||
|
android:pathData="M0,218C0,187.36 -0.13,148.14 1.23,119.51C1.64,110.9 2.2,102.32 3.16,93.76C3.99,86.31 5.11,78.95 6.9,71.65C8.66,64.49 11.01,57.69 14.35,51.09C18.34,43.19 23.47,36.1 29.74,29.84C36,23.58 43.09,18.46 50.99,14.47C57.6,11.14 64.4,8.79 71.56,7.04C78.86,5.25 86.22,4.13 93.68,3.3C102.25,2.34 110.83,1.78 119.44,1.37C148.1,0.01 187.34,0.15 218,0.15L0.07,0L0,218Z"
|
||||||
|
android:fillColor="#000000" />
|
||||||
|
</vector>
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
** Copyright 2018, The Android Open Source Project
|
||||||
|
**
|
||||||
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
** you may not use this file except in compliance with the License.
|
||||||
|
** You may obtain a copy of the License at
|
||||||
|
**
|
||||||
|
** http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
**
|
||||||
|
** Unless required by applicable law or agreed to in writing, software
|
||||||
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
** See the License for the specific language governing permissions and
|
||||||
|
** limitations under the License.
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
<!-- Default rounded corner curve (a Bezier). Must match (the curved path in) rounded.xml.
|
||||||
|
Note that while rounded.xml includes the entire path (including the horizontal and vertical
|
||||||
|
corner edges), this pulls out just the curve.
|
||||||
|
-->
|
||||||
|
<string name="config_rounded_mask" translatable="false">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</string>
|
||||||
|
<dimen name="config_rounded_mask_size">156px</dimen>
|
||||||
|
</resources>
|
Loading…
Reference in New Issue
Block a user