summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Lin <lbill@google.com>2021-09-10 02:55:53 +0000
committerBill Lin <lbill@google.com>2021-09-10 02:57:01 +0000
commitf8fd08228d079c5aa162cd685b7297b1f868183e (patch)
tree47fb6a5721d3257abc88acf36ba17243ba7b9a68
parenta640141a17d36359ab23a6c6706f14cff2b0d912 (diff)
downloadcrosshatch-f8fd08228d079c5aa162cd685b7297b1f868183e.tar.gz
[DO NOT MERGE] Customize Crosshatch/Blueline status bar system icons padding
1. Move dimen res from config.xml to dimens.xml 2. Adjust the padding system_icons_keyguard_padding_end Test: atest SystemUITests Test: manual review visual Bug: 195670442 Fixes: 198252802 Fixes: 199461075 Change-Id: I1d65167bde3b7f6bbe0e95c8e2f5c53d35f87167 Merged-In: I65ef9a83b209e07aa583e42c6e6bdcb994a029ce
-rwxr-xr-xblueline/overlay/frameworks/base/core/res/res/values/config.xml16
-rw-r--r--blueline/overlay/frameworks/base/core/res/res/values/dimens.xml33
-rw-r--r--blueline/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml6
-rw-r--r--crosshatch/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml7
4 files changed, 44 insertions, 18 deletions
diff --git a/blueline/overlay/frameworks/base/core/res/res/values/config.xml b/blueline/overlay/frameworks/base/core/res/res/values/config.xml
index d24b567e..701a67ab 100755
--- a/blueline/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/blueline/overlay/frameworks/base/core/res/res/values/config.xml
@@ -689,22 +689,6 @@
<item>G013B</item>
</string-array>
- <!-- Radius of the software rounded corners. -->
- <dimen name="rounded_corner_radius">48px</dimen>
-
- <!-- Adjustment for software rounded corners since corners aren't perfectly round. -->
- <dimen name="rounded_corner_radius_adjustment">0px</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">28dp</dimen>
- <dimen name="status_bar_height_landscape">24dp</dimen>
-
- <dimen name="quick_qs_offset_height">48dp</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>
-
<!-- the number of the max cached processes in the system. -->
<integer name="config_customizedMaxCachedProcesses">64</integer>
</resources>
diff --git a/blueline/overlay/frameworks/base/core/res/res/values/dimens.xml b/blueline/overlay/frameworks/base/core/res/res/values/dimens.xml
new file mode 100644
index 00000000..47123621
--- /dev/null
+++ b/blueline/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">48px</dimen>
+
+ <!-- Adjustment for software rounded corners since corners aren't perfectly round. -->
+ <dimen name="rounded_corner_radius_adjustment">0px</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">28dp</dimen>
+ <dimen name="status_bar_height_landscape">24dp</dimen>
+
+ <dimen name="quick_qs_offset_height">28dp</dimen>
+</resources>
diff --git a/blueline/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/blueline/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
index f5d26be5..ebfdcb1c 100644
--- a/blueline/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
+++ b/blueline/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
@@ -21,6 +21,12 @@
<!-- 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_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">450px</dimen>
diff --git a/crosshatch/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/crosshatch/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
index 1d98cf9c..c0fe31bb 100644
--- a/crosshatch/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
+++ b/crosshatch/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
@@ -21,13 +21,16 @@
<dimen name="display_cutout_margin_consumption">0px</dimen>
<!-- Height of the status bar header bar when on Keyguard (match status_bar_portrait) -->
- <dimen name="status_bar_header_height_keyguard">49dp</dimen>
+ <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>
<!-- Margin end of the system icons super container when the avatar is missing. -->
<dimen name="system_icons_super_container_avatarless_margin_end">10dp</dimen>
<!-- end margin for multi user switch in collapsed quick settings -->
- <dimen name="multi_user_switch_keyguard_margin">7dp</dimen>
+ <dimen name="multi_user_switch_keyguard_margin">9dp</dimen>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">780px</dimen>