From 1e1f85beffc59baeb30cd684445b85f9a33a91d6 Mon Sep 17 00:00:00 2001 From: Jon Spivack Date: Thu, 27 May 2021 14:19:34 -0700 Subject: [PATCH] NIU Actions: Support Dark Mode and Landscape This adds light and dark color variants for the UI elements on the Go Recents screen. Toggling Dark Mode will switch between the themes. Additionally, the button spacing definitions have been updated to better support Landscape orientation. Bug: 187866121 Bug: 183714277 Test: Manual (Pixel 3A) Change-Id: Ia2c0cbf372882aad87e4018d10d8f85bd92842e0 --- .../res/layout/overview_actions_container.xml | 18 ++------- go/quickstep/res/layout/overview_panel.xml | 39 +++++++++++++++++++ go/quickstep/res/values/attrs.xml | 23 +++++++++++ go/quickstep/res/values/colors.xml | 6 ++- go/quickstep/res/values/dimens.xml | 1 + go/quickstep/res/values/styles.xml | 22 +++++++++-- 6 files changed, 91 insertions(+), 18 deletions(-) create mode 100644 go/quickstep/res/layout/overview_panel.xml create mode 100644 go/quickstep/res/values/attrs.xml diff --git a/go/quickstep/res/layout/overview_actions_container.xml b/go/quickstep/res/layout/overview_actions_container.xml index b36214ba7d..e7da196fad 100644 --- a/go/quickstep/res/layout/overview_actions_container.xml +++ b/go/quickstep/res/layout/overview_actions_container.xml @@ -28,10 +28,6 @@ android:layout_gravity="top|center_horizontal" android:orientation="horizontal"> - - + android:layout_width="@dimen/go_overview_button_container_margin" + android:layout_height="1dp" /> @@ -68,9 +63,8 @@ + android:layout_width="@dimen/go_overview_button_container_margin" + android:layout_height="1dp" /> @@ -90,10 +84,6 @@ android:layout_height="1dp" android:layout_weight="1" /> - - + + + + + + + + + diff --git a/go/quickstep/res/values/attrs.xml b/go/quickstep/res/values/attrs.xml new file mode 100644 index 0000000000..3adf462d2c --- /dev/null +++ b/go/quickstep/res/values/attrs.xml @@ -0,0 +1,23 @@ + + + + + + + + + \ No newline at end of file diff --git a/go/quickstep/res/values/colors.xml b/go/quickstep/res/values/colors.xml index 9383770318..f815f54581 100644 --- a/go/quickstep/res/values/colors.xml +++ b/go/quickstep/res/values/colors.xml @@ -16,6 +16,10 @@ --> - #3C4043 + #DADADA + #000000 + #3C4043 + #F8F9FA #70FFFFFF + #303030 diff --git a/go/quickstep/res/values/dimens.xml b/go/quickstep/res/values/dimens.xml index da684fa23b..55cd138f12 100644 --- a/go/quickstep/res/values/dimens.xml +++ b/go/quickstep/res/values/dimens.xml @@ -22,6 +22,7 @@ 60dp 60dp 80dp + 16dp 8dp 96dp 0dp diff --git a/go/quickstep/res/values/styles.xml b/go/quickstep/res/values/styles.xml index 9b3fe67b98..59f7377d8e 100644 --- a/go/quickstep/res/values/styles.xml +++ b/go/quickstep/res/values/styles.xml @@ -15,9 +15,25 @@ limitations under the License. --> + + + + + +