pstar: overlay: adapt punch hole cutout
also set proper rounded corners and protected camera area
This commit is contained in:
parent
80bce132c5
commit
210c67a7f9
@ -97,6 +97,14 @@
|
|||||||
<item>500</item>
|
<item>500</item>
|
||||||
</array>
|
</array>
|
||||||
|
|
||||||
|
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
||||||
|
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||||
|
when adapting to brighter or darker environments. This parameter controls how quickly
|
||||||
|
brightness changes occur in response to an observed change in light level that exceeds the
|
||||||
|
hysteresis threshold. -->
|
||||||
|
<integer name="config_autoBrightnessBrighteningLightDebounce">500</integer>
|
||||||
|
<integer name="config_autoBrightnessDarkeningLightDebounce">500</integer>
|
||||||
|
|
||||||
<!-- The bounding path of the cutout region of the main built-in display.
|
<!-- 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
|
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||||
{@link android.util.PathParser}.
|
{@link android.util.PathParser}.
|
||||||
@ -118,7 +126,14 @@
|
|||||||
|
|
||||||
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
||||||
-->
|
-->
|
||||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -35,0 L 35,0 L 35,90 L -35,90 Z</string>
|
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||||
|
M 0,0
|
||||||
|
h -35
|
||||||
|
v 90
|
||||||
|
h 70
|
||||||
|
v -90
|
||||||
|
Z
|
||||||
|
</string>
|
||||||
|
|
||||||
<!-- Indicate whether to allow the device to suspend when the screen is off
|
<!-- Indicate whether to allow the device to suspend when the screen is off
|
||||||
due to the proximity sensor. This resource should only be set to true
|
due to the proximity sensor. This resource should only be set to true
|
||||||
|
@ -4,12 +4,17 @@
|
|||||||
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
|
<!-- Radius of the software rounded corners. -->
|
||||||
|
<dimen name="rounded_corner_radius">90px</dimen>
|
||||||
|
|
||||||
<!-- Height of the status bar in portrait. The height should be
|
<!-- Height of the status bar in portrait. The height should be
|
||||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||||
<dimen name="status_bar_height_portrait">90px</dimen>
|
<dimen name="status_bar_height_portrait">90px</dimen>
|
||||||
|
|
||||||
<!-- Height of the status bar in landscape. The height should be
|
<!-- Height of the status bar in landscape. The height should be
|
||||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||||
<dimen name="status_bar_height_landscape">24dp</dimen>
|
<dimen name="status_bar_height_landscape">24dp</dimen>
|
||||||
|
|
||||||
<!-- Height of area above QQS where battery/time go -->
|
<!-- Height of area above QQS where battery/time go -->
|
||||||
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
|
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
|
||||||
|
|
||||||
|
@ -33,4 +33,15 @@
|
|||||||
<dimen name="physical_volume_up_button_center_screen_location_y">392px</dimen>
|
<dimen name="physical_volume_up_button_center_screen_location_y">392px</dimen>
|
||||||
<dimen name="physical_volume_down_button_center_screen_location_y">494px</dimen>
|
<dimen name="physical_volume_down_button_center_screen_location_y">494px</dimen>
|
||||||
|
|
||||||
|
<!-- Configure protection around the front-facing camera -->
|
||||||
|
<string name="config_frontBuiltInDisplayCutoutProtection">
|
||||||
|
M 661,72
|
||||||
|
a 57,57 0 1 0 114,0
|
||||||
|
a 57,57 0 1 0 -114,0
|
||||||
|
Z
|
||||||
|
</string>
|
||||||
|
|
||||||
|
<!-- Camera 1 is the front camera -->
|
||||||
|
<string name="config_protectedCameraId">1</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user