diff options
author | Naman Sood <pseudonaman1396@gmail.com> | 2023-11-06 01:16:41 -0500 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2024-01-04 05:40:50 +0800 |
commit | 5653613b8d9c55aa73633cf81d0f2ed2e8322cfc (patch) | |
tree | a487aef4ab04931da29763e06c359a0a97d771ca | |
parent | bc472332d686f4946aa2d42cf83ca6b1990b0d7b (diff) |
pantah: fix padding in status bar
These overlays seem to be left over from barbet. With these values
adjusted, the padding on left and right sides of the status bar is
more symmetrical and the landscape top padding is correct.
Change-Id: I10c3f495b7627200b05a24f5b259f789e62ada13
4 files changed, 26 insertions, 24 deletions
diff --git a/cheetah/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml b/cheetah/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml new file mode 100644 index 0000000..dc398ac --- /dev/null +++ b/cheetah/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2021, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ +--> +<resources> + <!-- the padding on the top of the statusbar (usually 0) --> + <dimen name="status_bar_padding_top">0dp</dimen> +</resources> diff --git a/cheetah/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/cheetah/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml index 735cd9c..1d8f712 100644 --- a/cheetah/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml +++ b/cheetah/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -16,20 +16,15 @@ */ --> <resources> + <!-- the padding on the start of the statusbar --> + <dimen name="status_bar_padding_start">20dp</dimen> + <!-- the padding on the top of the statusbar (usually 0) --> <dimen name="status_bar_padding_top">1px</dimen> <!-- Height of the status bar header bar when on Keyguard (match status_bar_height) --> <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen> - <!-- Padding for the system icons on the keyguard (when no multi user switch is showing). - The icons always have a 4dp padding in the container so we only need 26 extra px of padding - for the corners --> - <dimen name="system_icons_super_container_avatarless_margin_end">26px</dimen> - - <!-- Margin on the right side of the system icon group on Keyguard. --> - <dimen name="system_icons_keyguard_padding_end">6.5dp</dimen> - <!-- Camera 1 is the front camera --> <string translatable="false" name="config_protectedCameraId">1</string> diff --git a/panther/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml b/panther/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml index 4c591bb..dc398ac 100644 --- a/panther/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml +++ b/panther/overlay/frameworks/base/packages/SystemUI/res/values-land/dimen.xml @@ -16,10 +16,6 @@ */ --> <resources> - <!-- Landscape, just use the regular values --> - <dimen name="status_bar_padding_start">8dp</dimen> - <dimen name="status_bar_padding_end">8dp</dimen> - <!-- the padding on the top of the statusbar (usually 0) --> <dimen name="status_bar_padding_top">0dp</dimen> </resources> diff --git a/panther/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/panther/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml index bbb6ac3..215ccab 100644 --- a/panther/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml +++ b/panther/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -16,8 +16,8 @@ */ --> <resources> - <!-- Don't need the left side padding due to being inset from the cutout --> - <dimen name="status_bar_padding_start">0dp</dimen> + <!-- the padding on the start of the statusbar --> + <dimen name="status_bar_padding_start">20dp</dimen> <!-- the padding on the top of the statusbar (usually 0) --> <dimen name="status_bar_padding_top">1px</dimen> @@ -25,16 +25,6 @@ <!-- Height of the status bar header bar when on Keyguard (match status_bar_height) --> <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen> - <!-- Padding for the system icons on the keyguard (when no multi user switch is showing). - The icons always have a 4dp padding in the container so we only need 56 extra px of padding - for the corners --> - <dimen name="system_icons_super_container_avatarless_margin_end">11px</dimen> - - <!-- Multi user switch has some intrinsic padding to it --> - <dimen name="multi_user_switch_keyguard_margin">6dp</dimen> - - <dimen name="keyguard_carrier_text_margin">0px</dimen> - <dimen name="config_rounded_mask_size">47px</dimen> <dimen name="config_rounded_mask_size_top">47px</dimen> <dimen name="config_rounded_mask_size_bottom">46px</dimen> |