From e1bdc395e628da09090110ac5000c27bdadd89e9 Mon Sep 17 00:00:00 2001 From: Alison Cichowlas Date: Thu, 19 Apr 2018 18:19:58 -0400 Subject: [PATCH] Global actions visuals: - Un-round corners on global actions separator. - Scoot closer to edge (GA & volume) - Padding tweaks Test: Manual (examine corners of power menu) Bug: 72404596 Change-Id: Ie16d62f387ac598bef0ada8b10d24ae2740aa503 --- core/res/res/layout/global_actions_item.xml | 1 + packages/SystemUI/res/layout/global_actions_item.xml | 4 ++-- packages/SystemUI/res/layout/global_actions_wrapped.xml | 2 +- packages/SystemUI/res/values/dimens.xml | 4 +--- .../SystemUI/src/com/android/systemui/HardwareUiLayout.java | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/core/res/res/layout/global_actions_item.xml b/core/res/res/layout/global_actions_item.xml index e5a9854d50c76..6ac0b1756234b 100644 --- a/core/res/res/layout/global_actions_item.xml +++ b/core/res/res/layout/global_actions_item.xml @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> + diff --git a/packages/SystemUI/res/layout/global_actions_item.xml b/packages/SystemUI/res/layout/global_actions_item.xml index bf3aea8ab6dd6..66a4b737d09bc 100644 --- a/packages/SystemUI/res/layout/global_actions_item.xml +++ b/packages/SystemUI/res/layout/global_actions_item.xml @@ -25,8 +25,8 @@ android:minHeight="92dp" android:gravity="center" android:orientation="vertical" - android:paddingEnd="0dip" - android:paddingStart="0dip"> + android:paddingEnd="4dip" + android:paddingStart="4dip"> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index a1e5b0e6e5e20..875000c842600 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -899,8 +899,6 @@ 18dp 18dp - 16dp - 120dp 120dp @@ -916,7 +914,7 @@ 8dp 0dp 48dp - 16dp + 8dp 0dp 0dp diff --git a/packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java b/packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java index 3bdb247b64c25..98dc3219acc62 100644 --- a/packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java +++ b/packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java @@ -89,7 +89,7 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { mEdgeBleed = Settings.Secure.getInt(getContext().getContentResolver(), EDGE_BLEED, 0) != 0; mRoundedDivider = Settings.Secure.getInt(getContext().getContentResolver(), - ROUNDED_DIVIDER, 1) != 0; + ROUNDED_DIVIDER, 0) != 0; updateEdgeMargin(mEdgeBleed ? 0 : getEdgePadding()); mBackground = new HardwareBgDrawable(mRoundedDivider, !mEdgeBleed, getContext()); if (mChild != null) {