From f4514b9fbfc64745d16df746d33ffa1345fd7e4c Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Thu, 31 Mar 2022 18:41:55 +0800 Subject: [PATCH] Fine tune background color for dual pane in homepage Follow the spec and change the background color. Test: See the screen Bug: 223329504 Change-Id: Ibcbf0e898ae949e1354f5af810a2347eba42b508 --- color-check-baseline.xml | 60 +++++++++++++++++-- .../settings_two_pane_background_color.xml | 18 ++++++ .../settings_two_pane_background_color.xml | 18 ++++++ ...tings_homepage_app_bar_two_pane_layout.xml | 5 +- .../homepage/SettingsHomepageActivity.java | 2 +- 5 files changed, 93 insertions(+), 10 deletions(-) create mode 100644 res/color-night/settings_two_pane_background_color.xml create mode 100644 res/color/settings_two_pane_background_color.xml diff --git a/color-check-baseline.xml b/color-check-baseline.xml index 96f0210b36d..ade57894939 100644 --- a/color-check-baseline.xml +++ b/color-check-baseline.xml @@ -3245,6 +3245,22 @@ column="13"/> + + + + + + + + + + + + @@ -4537,7 +4585,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~"> @@ -4553,7 +4601,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~"> @@ -4569,7 +4617,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~"> @@ -4585,7 +4633,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~"> @@ -4601,7 +4649,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~"> diff --git a/res/color-night/settings_two_pane_background_color.xml b/res/color-night/settings_two_pane_background_color.xml new file mode 100644 index 00000000000..86aa0ed1855 --- /dev/null +++ b/res/color-night/settings_two_pane_background_color.xml @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/res/color/settings_two_pane_background_color.xml b/res/color/settings_two_pane_background_color.xml new file mode 100644 index 00000000000..6cb8e703077 --- /dev/null +++ b/res/color/settings_two_pane_background_color.xml @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/res/layout/settings_homepage_app_bar_two_pane_layout.xml b/res/layout/settings_homepage_app_bar_two_pane_layout.xml index 4db2e652501..0cd8c902aa0 100644 --- a/res/layout/settings_homepage_app_bar_two_pane_layout.xml +++ b/res/layout/settings_homepage_app_bar_two_pane_layout.xml @@ -17,11 +17,10 @@ + android:orientation="vertical" + android:background="@color/settings_two_pane_background_color">