Skip to content

Commit

Permalink
instantnoodlep: Add cutout approximation + set status bar padding sta…
Browse files Browse the repository at this point in the history
…rt to 0px

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

Change-Id: I792a85826041c7debf7f70e65318855c0cce65fe
  • Loading branch information
andrewfluck authored and luk1337 committed Apr 29, 2021
1 parent c210eaf commit 364cfca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

<!-- 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
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
*/
-->
<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 -->
<dimen name="status_bar_padding_end">65px</dimen>

<!-- Height of the status bar header bar when on Keyguard -->
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>

<!-- 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. -->
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
Expand Down

0 comments on commit 364cfca

Please sign in to comment.