instantnoodlep: Add cutout approximation + set status bar padding start to 0px

[LuK1337]: Modified vector path so that its height matches regular
           cutout path + converted it from relative to absolute.

Change-Id: I792a85826041c7debf7f70e65318855c0cce65fe
This commit is contained in:
Andrew Fluck 2020-12-19 21:26:35 -05:00 committed by LuK1337
parent c210eaf003
commit 364cfca344
2 changed files with 19 additions and 1 deletions

View File

@ -419,6 +419,21 @@
--> -->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -525 79.5 A 41.5 41.5 0 0 1 -608 79.5 A 41.5 41.5 0 0 1 -525 79.5 Z M -608,0 L -525,0 Z M -720,0 L -720,121 Z</string> <string translatable="false" name="config_mainBuiltInDisplayCutout">M -525 79.5 A 41.5 41.5 0 0 1 -608 79.5 A 41.5 41.5 0 0 1 -525 79.5 Z M -608,0 L -525,0 Z M -720,0 L -720,121 Z</string>
<!-- Like config_mainBuiltInDisplayCutout, but this path is used to report the
one single bounding rect per device edge to the app via
{@link DisplayCutout#getBoundingRect}. Note that this path should try to match the visual
appearance of the cutout as much as possible, and may be smaller than
config_mainBuiltInDisplayCutout
-->
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
M 0,0
H 236
V 121
H 0
Z
@left
</string>
<!-- Whether the display cutout region of the main built-in display should be forced to <!-- Whether the display cutout region of the main built-in display should be forced to
black in software (to avoid aliasing or emulate a cutout that is not physically existent). black in software (to avoid aliasing or emulate a cutout that is not physically existent).
--> -->

View File

@ -16,6 +16,9 @@
*/ */
--> -->
<resources> <resources>
<!-- the padding on the start of the statusbar -->
<dimen name="status_bar_padding_start">0px</dimen>
<!-- the padding on the end of the statusbar --> <!-- the padding on the end of the statusbar -->
<dimen name="status_bar_padding_end">65px</dimen> <dimen name="status_bar_padding_end">65px</dimen>
@ -23,7 +26,7 @@
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen> <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
<!-- Margin on the left side of the carrier text on Keyguard --> <!-- Margin on the left side of the carrier text on Keyguard -->
<dimen name="keyguard_carrier_text_margin">30px</dimen> <dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<!-- Margin on the right side of the system icon group on Keyguard. --> <!-- Margin on the right side of the system icon group on Keyguard. -->
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen> <dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>