bangkk: overlay: Add proper cutout and adjust statusbar dimensions

Change-Id: I66df4d4d77a72df09e095c271501ba55df963687
This commit is contained in:
Michael Bestas 2024-11-02 09:23:41 +02:00
parent e3682d6619
commit 529cf8fdda
No known key found for this signature in database
4 changed files with 14 additions and 23 deletions

View file

@ -186,9 +186,9 @@
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string name="config_mainBuiltInDisplayCutout" translatable="false">
M 503.5,65
a 36.5,36.5 0 1 0 73,0
a 36.5,36.5 0 1 0 -73,0
M 507,63
a 33,33 0 1 0 66,0
a 33,33 0 1 0 -66,0
Z
@left
</string>
@ -200,10 +200,10 @@
config_mainBuiltInDisplayCutout
-->
<string name="config_mainBuiltInDisplayCutoutRectApproximation" translatable="false">
M -36.5 0
L -36.5 130
L 36.5 130
L 36.5 0
M -33 0
L -33 126
L 33 126
L 33 0
Z
</string>

View file

@ -4,6 +4,9 @@
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Default paddings for content around the corners. -->
<dimen name="rounded_corner_content_padding">14dp</dimen>
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
calculate the status bar height. -->
<dimen name="status_bar_height_default">28dp</dimen>
@ -11,7 +14,7 @@
<!-- Height of the status bar in portrait.
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
-->
<dimen name="status_bar_height_portrait">130px</dimen>
<dimen name="status_bar_height_portrait">126px</dimen>
<!-- Height of the status bar in landscape.
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
@ -20,7 +23,4 @@
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">95.0px</dimen>
<!-- Default paddings for content around the corners. -->
<dimen name="rounded_corner_content_padding">14dp</dimen>
</resources>

View file

@ -14,9 +14,9 @@
DisplayCutout path will be rendered
-->
<string name="config_frontBuiltInDisplayCutoutProtection" translatable="false">
M 498.5,65
a 41.5,41.5 0 1 0 83,0
a 41.5,41.5 0 1 0 -83,0
M 503,63
a 37,37 0 1 0 74,0
a 37,37 0 1 0 -74,0
Z
</string>

View file

@ -4,15 +4,6 @@
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- the padding on the start of the statusbar -->
<dimen name="status_bar_padding_start">20.0dip</dimen>
<!-- the padding on the end of the statusbar -->
<dimen name="status_bar_padding_end">7.0dip</dimen>
<!-- the padding on the top of the statusbar (usually 0) -->
<dimen name="status_bar_padding_top">20.0px</dimen>
<!-- Height of the status bar header bar when on Keyguard -->
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>