aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2021-02-05 15:56:02 +0100
committerLuK1337 <priv.luk@gmail.com>2021-08-06 19:46:40 +0200
commit03c57237a24898b94f9aaf2d68a580d8ff4f3d61 (patch)
treef460b89ac2e121536a111bc279ef47e884bdd838
parent56c134065a1d6676fa4da6efc2420c4a6a4e3ad7 (diff)
enchilada: Import rounded corners config from OOS
Change-Id: I89ce857d15804f9a9361ff3825a9426a9382c578
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml3
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml11
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml11
3 files changed, 25 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index f9b2fd0..5fca267 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -358,6 +358,9 @@
will not debounce light sensor readings -->
<integer name="config_lightSensorWarmupTime">200</integer>
+ <!-- Default radius of the software rounded corners. -->
+ <dimen name="rounded_corner_radius">106px</dimen>
+
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}.
diff --git a/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml
new file mode 100644
index 0000000..07cea53
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_bottom.xml
@@ -0,0 +1,11 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="82px"
+ android:height="82px"
+ android:viewportWidth="82"
+ android:viewportHeight="82">
+
+ <path
+ android:fillColor="#ff000000"
+ android:pathData="M 0 79.11 V 0 H 78.86 C 20.64 0.11 0 25.45 0 79.11 Z" />
+
+</vector>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml
new file mode 100644
index 0000000..a453ce3
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded_corner_top.xml
@@ -0,0 +1,11 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="106px"
+ android:height="106px"
+ android:viewportWidth="106"
+ android:viewportHeight="106">
+
+ <path
+ android:fillColor="#ff000000"
+ android:pathData="M 101.86 0 H 0 V 102.84 C 0 27.81 27.52 0.24 101.86 0 Z" />
+
+</vector>