diff options
author | Bill Lin <lbill@google.com> | 2021-09-10 02:24:56 +0000 |
---|---|---|
committer | Bill Lin <lbill@google.com> | 2021-09-10 02:53:58 +0000 |
commit | 9485129e21438315a67b532b204289085296c8cc (patch) | |
tree | 83578c7ed6a857daa76d51983a08e2e9632a2172 | |
parent | 436eedb4a9712fa1c12ddf00aa7cddb7a82e13a6 (diff) | |
download | bonito-9485129e21438315a67b532b204289085296c8cc.tar.gz |
[DO NOT MERGE] Customize Bonito/Sargo status bar system icons padding
1. Move dimen res from config.xml to dimen.xml
2. Adjust the padding system_icons_keyguard_padding_end
Test: atest SystemUITests
Test: manual review visual
Bug: 195670442
Fixes: 198252802
Fixes: 199461075
Fixes: 199459128
Change-Id: Ied4d98bcc2347ac0fc55cf66dbe32b06b8c2efec
Merged-In: I49810a58eeac65c0fa5c7f69f7465e44220fb00d
6 files changed, 78 insertions, 14 deletions
diff --git a/bonito/overlay/frameworks/base/core/res/res/values/config.xml b/bonito/overlay/frameworks/base/core/res/res/values/config.xml index 6629dc40..412db9b3 100755 --- a/bonito/overlay/frameworks/base/core/res/res/values/config.xml +++ b/bonito/overlay/frameworks/base/core/res/res/values/config.xml @@ -698,11 +698,6 @@ <item>G020D</item> </string-array> - <!-- Radius of the software rounded corners. --> - <dimen name="rounded_corner_radius">39px</dimen> - <dimen name="rounded_corner_radius_top">38px</dimen> - <dimen name="rounded_corner_radius_bottom">39px</dimen> - <!-- the number of the max cached processes in the system. --> <integer name="config_customizedMaxCachedProcesses">64</integer> </resources> diff --git a/bonito/overlay/frameworks/base/core/res/res/values/dimens.xml b/bonito/overlay/frameworks/base/core/res/res/values/dimens.xml new file mode 100644 index 00000000..0a7c4e5b --- /dev/null +++ b/bonito/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Radius of the software rounded corners. --> + <dimen name="rounded_corner_radius">39px</dimen> + <dimen name="rounded_corner_radius_top">38px</dimen> + <dimen name="rounded_corner_radius_bottom">39px</dimen> + + <!-- Height of the status bar --> + <dimen name="status_bar_height_portrait">28dp</dimen> + <!-- Height of area above QQS where battery/time go (equal to status bar) --> + <dimen name="quick_qs_offset_height">28dp</dimen> + + <!-- Adjustment for software rounded corners since corners aren't perfectly round. --> + <dimen name="rounded_corner_radius_adjustment">3px</dimen> +</resources> diff --git a/bonito/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/bonito/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml index 34a55277..8295f934 100644 --- a/bonito/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml +++ b/bonito/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -17,8 +17,12 @@ --> <resources> <dimen name="rounded_corner_content_padding">28px</dimen> - <!-- Height of the status bar --> - <dimen name="status_bar_height_portrait">28dp</dimen> + + <!-- Height of the status bar header bar when on Keyguard (match status_bar_portrait) --> + <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height_portrait</dimen> + + <!-- Margin on the right side of the system icon group on Keyguard. --> + <dimen name="system_icons_keyguard_padding_end">8.5dp</dimen> <!-- Location on the screen of the center of the physical power button. --> <dimen name="physical_power_button_center_screen_location_y">500px</dimen> diff --git a/sargo/overlay/frameworks/base/core/res/res/values/config.xml b/sargo/overlay/frameworks/base/core/res/res/values/config.xml index 307435dd..ff067971 100755 --- a/sargo/overlay/frameworks/base/core/res/res/values/config.xml +++ b/sargo/overlay/frameworks/base/core/res/res/values/config.xml @@ -699,11 +699,6 @@ <item>G020H</item> </string-array> - <!-- Radius of the software rounded corners. --> - <dimen name="rounded_corner_radius">39px</dimen> - <dimen name="rounded_corner_radius_top">40px</dimen> - <dimen name="rounded_corner_radius_bottom">41px</dimen> - <!-- the number of the max cached processes in the system. --> <integer name="config_customizedMaxCachedProcesses">64</integer> </resources> diff --git a/sargo/overlay/frameworks/base/core/res/res/values/dimens.xml b/sargo/overlay/frameworks/base/core/res/res/values/dimens.xml new file mode 100644 index 00000000..0a7c4e5b --- /dev/null +++ b/sargo/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Radius of the software rounded corners. --> + <dimen name="rounded_corner_radius">39px</dimen> + <dimen name="rounded_corner_radius_top">38px</dimen> + <dimen name="rounded_corner_radius_bottom">39px</dimen> + + <!-- Height of the status bar --> + <dimen name="status_bar_height_portrait">28dp</dimen> + <!-- Height of area above QQS where battery/time go (equal to status bar) --> + <dimen name="quick_qs_offset_height">28dp</dimen> + + <!-- Adjustment for software rounded corners since corners aren't perfectly round. --> + <dimen name="rounded_corner_radius_adjustment">3px</dimen> +</resources> diff --git a/sargo/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/sargo/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml index ef68a5ad..01c0d468 100644 --- a/sargo/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml +++ b/sargo/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -17,8 +17,12 @@ --> <resources> <dimen name="rounded_corner_content_padding">28px</dimen> - <!-- Height of the status bar --> - <dimen name="status_bar_height_portrait">28dp</dimen> + + <!-- Height of the status bar header bar when on Keyguard (match status_bar_portrait) --> + <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height_portrait</dimen> + + <!-- Margin on the right side of the system icon group on Keyguard. --> + <dimen name="system_icons_keyguard_padding_end">9dp</dimen> <!-- Location on the screen of the center of the physical power button. --> <dimen name="physical_power_button_center_screen_location_y">530px</dimen> |