dubai: overlay: Redo statusbar padding overlays

• Prior to this, the icons were not aligned to the camera cutout.
• Seems like motorola had set status_bar_padding_top_portrait but
  we don't have that. However, status_bar_padding_top is configurable
  so use the same value there.

Change-Id: Ife06be11a66098c8e84a94b1f11efd2c2280b9f3
This commit is contained in:
Mukul Dhir 2024-08-13 14:42:54 -04:00 committed by Fraaxius
parent 3027316b34
commit 5d9a0fe216
3 changed files with 20 additions and 13 deletions

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Height of the status bar in landscape. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height">24.0dip</dimen>
</resources>

View file

@ -10,9 +10,21 @@
<!-- Default paddings for content around the corners. -->
<dimen name="rounded_corner_content_padding">4px</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">105px</dimen>
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_portrait">105.0px</dimen>
<dimen name="status_bar_height_portrait">@dimen/status_bar_height_default</dimen>
<dimen name="status_bar_padding_top_portrait">20.0px</dimen>
<!-- Height of the status bar in landscape.
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
-->
<dimen name="status_bar_height_landscape">14dip</dimen>
<!-- Height of area above QQS where battery/time go.
Do not read this dimen directly. Use {@link SystemBarUtils#getQuickQsOffsetHeight} instead.
-->
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_default</dimen>
</resources>

View file

@ -7,6 +7,12 @@
<!-- 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>