From 2460ef4306608b25639a6945fc83e71dc380cb1a Mon Sep 17 00:00:00 2001 From: shaoweishen Date: Thu, 10 Mar 2022 11:53:03 +0000 Subject: [PATCH] DO NOT MERGE: Downbranch merge conflict[Output Swithcer] Update color Bug: 223298232 Test: Verified on device Change-Id: I7ed0ebb88f3d3eb82e6cea67d4f560da0b11f26b --- .../res/drawable/ic_circular_unchecked.xml | 2 +- .../drawable/media_output_status_check.xml | 2 +- .../drawable/media_output_status_failed.xml | 2 +- .../res/layout/media_output_list_item.xml | 4 +- packages/SystemUI/res/values-night/colors.xml | 10 ++-- packages/SystemUI/res/values/colors.xml | 8 ++- packages/SystemUI/res/values/styles.xml | 2 +- .../media/dialog/MediaOutputAdapter.java | 20 ++++--- .../media/dialog/MediaOutputBaseAdapter.java | 8 ++- .../media/dialog/MediaOutputBaseDialog.java | 1 + .../media/dialog/MediaOutputController.java | 58 +++++++++++-------- 11 files changed, 67 insertions(+), 50 deletions(-) diff --git a/packages/SystemUI/res/drawable/ic_circular_unchecked.xml b/packages/SystemUI/res/drawable/ic_circular_unchecked.xml index 9b43cf64f116d..779ab816d9256 100644 --- a/packages/SystemUI/res/drawable/ic_circular_unchecked.xml +++ b/packages/SystemUI/res/drawable/ic_circular_unchecked.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> diff --git a/packages/SystemUI/res/drawable/media_output_status_check.xml b/packages/SystemUI/res/drawable/media_output_status_check.xml index 1b750f8959b97..5fbc42b245b88 100644 --- a/packages/SystemUI/res/drawable/media_output_status_check.xml +++ b/packages/SystemUI/res/drawable/media_output_status_check.xml @@ -21,6 +21,6 @@ android:viewportHeight="24" android:tint="?attr/colorControlNormal"> diff --git a/packages/SystemUI/res/drawable/media_output_status_failed.xml b/packages/SystemUI/res/drawable/media_output_status_failed.xml index 05c6358334410..0599e239a9ee8 100644 --- a/packages/SystemUI/res/drawable/media_output_status_failed.xml +++ b/packages/SystemUI/res/drawable/media_output_status_failed.xml @@ -21,6 +21,6 @@ android:viewportHeight="24" android:tint="?attr/colorControlNormal"> diff --git a/packages/SystemUI/res/layout/media_output_list_item.xml b/packages/SystemUI/res/layout/media_output_list_item.xml index eeb37c7b062d8..20747fad021be 100644 --- a/packages/SystemUI/res/layout/media_output_list_item.xml +++ b/packages/SystemUI/res/layout/media_output_list_item.xml @@ -83,7 +83,7 @@ android:ellipsize="end" android:maxLines="1" android:fontFamily="@*android:string/config_headlineFontFamilyMedium" - android:textColor="@color/media_dialog_inactive_item_main_content" + android:textColor="@color/media_dialog_item_main_content" android:textSize="16sp"/> diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml index 4b96d5d660eeb..3a638b1e50981 100644 --- a/packages/SystemUI/res/values-night/colors.xml +++ b/packages/SystemUI/res/values-night/colors.xml @@ -67,10 +67,12 @@ @color/material_dynamic_neutral10 - @color/material_dynamic_neutral10 - @color/material_dynamic_neutral10 - @color/material_dynamic_neutral10 - @color/material_dynamic_secondary95 + @color/material_dynamic_primary90 + @color/material_dynamic_neutral_variant20 + @color/material_dynamic_secondary20 + @color/material_dynamic_secondary40 + @color/material_dynamic_primary70 + @color/material_dynamic_secondary20 #ffcccccc diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 1edaaadfb4339..49fc8482712ae 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -176,10 +176,12 @@ @color/material_dynamic_neutral90 - @color/material_dynamic_primary10 - @color/material_dynamic_primary40 - @color/material_dynamic_primary10 + @color/material_dynamic_primary20 @color/material_dynamic_secondary95 + @color/material_dynamic_primary90 + @color/material_dynamic_secondary40 + @color/material_dynamic_primary40 + @color/material_dynamic_neutral95 #E6FFFFFF diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 3ae21e08005db..f5c1382b9ae9e 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -486,7 +486,7 @@