dubai: overlay: Add proper cutout and adjust statusbar dimensions

Change-Id: I66df4d4d77a72df09e095c271501ba55df963687
This commit is contained in:
Michael Bestas 2024-11-08 19:39:39 +02:00 committed by Marc Bourgoin
parent 36098ce609
commit 6b43757e7c
4 changed files with 65 additions and 12 deletions

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- A path similar to frameworks/base/core/res/res/values/config.xml
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a display
cutout. If present as well as config_enableDisplayCutoutProtection is set to true, then
SystemUI will draw this "protection path" instead of the display cutout path that is normally
used for anti-aliasing.
This path will only be drawn when the front-facing camera turns on, otherwise the main
DisplayCutout path will be rendered
-->
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
M 498.5,65
a 41.5,41.5 0 1 0 83,0
a 41.5,41.5 0 1 0 -83,0
Z
</string>
<!-- ID for the camera that needs extra protection -->
<string translatable="false" name="config_protectedCameraId">1</string>
<!-- Flag to turn on the rendering of the above path or not -->
<bool name="config_enableDisplayCutoutProtection">true</bool>
</resources>

View file

@ -17,7 +17,7 @@
<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">16.0dip</dimen>
<dimen name="keyguard_carrier_text_margin">4dp</dimen>
<!-- Margin on the right side of the system icon group on Keyguard. -->
<dimen name="system_icons_keyguard_padding_end">10.0px</dimen>
@ -31,4 +31,7 @@
<!-- Location on the screen of the center of the physical volume up/down buttons. -->
<dimen name="physical_volume_up_button_center_screen_location_y">600.0px</dimen>
<dimen name="physical_volume_down_button_center_screen_location_y">760.0px</dimen>
<!-- Total minimum padding to enforce to ensure that the dot can always show -->
<dimen name="ongoing_appops_dot_min_padding">14dp</dimen>
</resources>