From 8e42667d739142bd46e2ca6f3748f7895497de28 Mon Sep 17 00:00:00 2001 From: Ned Burns Date: Mon, 20 May 2019 18:02:19 -0400 Subject: [PATCH] Increase height of silent section header to meet GAR Also removes the night-specific layout in favor of a color selector. Test: manual Fixes: 132401519 Change-Id: I336aa3e5cf3d4c9b09f8e985d5c1389cd935d7a5 --- ..._notification_section_header_clear_btn.xml | 25 ------------------- ..._notification_section_header_clear_btn.xml | 2 +- ...status_bar_notification_section_header.xml | 1 + packages/SystemUI/res/values-night/colors.xml | 1 + packages/SystemUI/res/values/colors.xml | 1 + packages/SystemUI/res/values/dimens.xml | 2 +- 6 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 packages/SystemUI/res/drawable-night/status_bar_notification_section_header_clear_btn.xml diff --git a/packages/SystemUI/res/drawable-night/status_bar_notification_section_header_clear_btn.xml b/packages/SystemUI/res/drawable-night/status_bar_notification_section_header_clear_btn.xml deleted file mode 100644 index c471b38306d5f..0000000000000 --- a/packages/SystemUI/res/drawable-night/status_bar_notification_section_header_clear_btn.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml b/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml index 15f14d8af89b5..8b34080488487 100644 --- a/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml +++ b/packages/SystemUI/res/drawable/status_bar_notification_section_header_clear_btn.xml @@ -20,6 +20,6 @@ android:viewportWidth="40" android:viewportHeight="40"> diff --git a/packages/SystemUI/res/layout/status_bar_notification_section_header.xml b/packages/SystemUI/res/layout/status_bar_notification_section_header.xml index 2b210064023be..990a0843b64a9 100644 --- a/packages/SystemUI/res/layout/status_bar_notification_section_header.xml +++ b/packages/SystemUI/res/layout/status_bar_notification_section_header.xml @@ -55,6 +55,7 @@ android:layout_marginRight="4dp" android:src="@drawable/status_bar_notification_section_header_clear_btn" android:contentDescription="@string/accessibility_notification_section_header_gentle_clear_all" + android:scaleType="center" /> diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml index e25faa28d658c..addc10aaeff66 100644 --- a/packages/SystemUI/res/values-night/colors.xml +++ b/packages/SystemUI/res/values-night/colors.xml @@ -50,6 +50,7 @@ @color/GM2_blue_200 @color/GM2_grey_200 + @color/GM2_grey_500 @color/GM2_grey_700 diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 6d7e205949129..490473ce003a8 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -98,6 +98,7 @@ @color/GM2_blue_700 @color/GM2_grey_900 + @color/GM2_grey_700 @color/GM2_grey_200 diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index e00e5f23dea83..7bbe1633367d1 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -698,7 +698,7 @@ 12dp - 40dp + 48dp 16dp