From 67ef923f5e1c68bde73cc3173ceee19c55dc6abb Mon Sep 17 00:00:00 2001 From: Marcelo Arteiro Date: Wed, 24 Apr 2024 15:15:40 +0000 Subject: Adoption of Dynamic Color tokens Test: manual Flag: EXEMPT bugfix Bug: 335712994 Screenshot: https://screenshot.googleplex.com/3DNbEZHDx9zUeHT.png Bug: 335434421 Screenshot: https://screenshot.googleplex.com/6KyKunKvmTevcrp.png Bug: 335436243 Screenshot: https://screenshot.googleplex.com/3Utc6XFH2tyJJcT.png Bug: 327348461 Change-Id: Ifedbe2cb9834a02a45b4c5ab8b688cdc8fb7017b --- core/res/res/values/themes_device_defaults.xml | 86 +++++++++++----------- .../SystemUI/res/color/brightness_slider_track.xml | 19 ----- packages/SystemUI/res/drawable/brightness_bar.xml | 2 +- .../res/drawable/brightness_progress_drawable.xml | 3 +- packages/SystemUI/res/values-night/colors.xml | 6 +- packages/SystemUI/res/values/colors.xml | 2 +- packages/SystemUI/res/values/styles.xml | 16 ++-- 7 files changed, 60 insertions(+), 74 deletions(-) delete mode 100644 packages/SystemUI/res/color/brightness_slider_track.xml diff --git a/core/res/res/values/themes_device_defaults.xml b/core/res/res/values/themes_device_defaults.xml index 452ae04c7199..d35bfb7bc1a1 100644 --- a/core/res/res/values/themes_device_defaults.xml +++ b/core/res/res/values/themes_device_defaults.xml @@ -131,7 +131,7 @@ easier. @style/Widget.DeviceDefault.ProgressBar.Small.Inverse @style/Widget.DeviceDefault.ProgressBar.Large.Inverse @dimen/config_progressBarCornerRadius - @color/config_progress_background_tint + ?attr/materialColorOutline @style/Widget.DeviceDefault.SeekBar @style/Widget.DeviceDefault.RatingBar @style/Widget.DeviceDefault.RatingBar.Indicator @@ -351,7 +351,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -468,7 +468,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -587,7 +587,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -705,7 +705,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -831,7 +831,7 @@ easier. @style/Theme.DeviceDefault.Dialog.Alert - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -948,7 +948,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1064,7 +1064,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1181,7 +1181,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1314,7 +1314,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1432,7 +1432,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1548,7 +1548,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1666,7 +1666,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1783,7 +1783,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -1900,7 +1900,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2017,7 +2017,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2134,7 +2134,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2251,7 +2251,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2373,7 +2373,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2488,7 +2488,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2642,7 +2642,7 @@ easier. @style/Widget.DeviceDefault.Light.ProgressBar.Small.Inverse @style/Widget.DeviceDefault.Light.ProgressBar.Large.Inverse @dimen/config_progressBarCornerRadius - @color/config_progress_background_tint + ?attr/materialColorOutline @style/Widget.DeviceDefault.Light.SeekBar @style/Widget.DeviceDefault.Light.RatingBar @style/Widget.DeviceDefault.Light.RatingBar.Indicator @@ -2858,7 +2858,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -2974,7 +2974,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3091,7 +3091,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3210,7 +3210,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3328,7 +3328,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3452,7 +3452,7 @@ easier. @color/foreground_device_default_dark - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3572,7 +3572,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3691,7 +3691,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -3811,7 +3811,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4133,7 +4133,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4254,7 +4254,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4373,7 +4373,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4491,7 +4491,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4608,7 +4608,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4725,7 +4725,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -4840,7 +4840,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -5066,7 +5066,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -5162,7 +5162,7 @@ easier. @style/Theme.DeviceDefault.Light.Dialog.Alert - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -5280,7 +5280,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -5471,7 +5471,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -5522,7 +5522,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius @@ -5641,7 +5641,7 @@ easier. @style/Widget.DeviceDefault.Button.ButtonBar.AlertDialog - @color/config_progress_background_tint + ?attr/materialColorOutline @dimen/config_progressBarCornerRadius diff --git a/packages/SystemUI/res/color/brightness_slider_track.xml b/packages/SystemUI/res/color/brightness_slider_track.xml deleted file mode 100644 index 6028769f3789..000000000000 --- a/packages/SystemUI/res/color/brightness_slider_track.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/brightness_bar.xml b/packages/SystemUI/res/drawable/brightness_bar.xml index 2afe164ab5c5..3d1c1fbd6ce7 100644 --- a/packages/SystemUI/res/drawable/brightness_bar.xml +++ b/packages/SystemUI/res/drawable/brightness_bar.xml @@ -21,7 +21,7 @@ android:viewportHeight="48"> + android:fillColor="?androidprv:attr/customColorShadeInactive"/> diff --git a/packages/SystemUI/res/drawable/brightness_progress_drawable.xml b/packages/SystemUI/res/drawable/brightness_progress_drawable.xml index cae9d6b0513e..ec15b10851c5 100644 --- a/packages/SystemUI/res/drawable/brightness_progress_drawable.xml +++ b/packages/SystemUI/res/drawable/brightness_progress_drawable.xml @@ -15,6 +15,7 @@ ~ limitations under the License. --> @@ -24,7 +25,7 @@ - + diff --git a/packages/SystemUI/res/values-night/colors.xml b/packages/SystemUI/res/values-night/colors.xml index 21f1cfbe4c9e..c1eff5f629b3 100644 --- a/packages/SystemUI/res/values-night/colors.xml +++ b/packages/SystemUI/res/values-night/colors.xml @@ -16,7 +16,11 @@ NOTE: You might also want to edit: core/res/res/values-night/*.xml --> - + + + @androidprv:color/system_under_surface_dark + @color/GM2_grey_900 diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 8cf0fb2537cc..a3752640e7ed 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -29,7 +29,7 @@ #38000000 - @*android:color/black + @androidprv:color/system_under_surface_light #F5F5F5 diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 3ef624365594..a02c35461031 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -505,14 +505,14 @@ ?androidprv:attr/materialColorOnSurfaceVariant ?androidprv:attr/materialColorOutline - @color/material_dynamic_primary90 - @color/material_dynamic_primary10 - @color/material_dynamic_primary30 - @color/material_dynamic_neutral20 - @color/material_dynamic_neutral90 - @color/material_dynamic_neutral_variant80 - @color/shade_disabled - @color/material_dynamic_neutral0 + ?androidprv:attr/customColorShadeActive + ?androidprv:attr/customColorOnShadeActive + ?androidprv:attr/customColorOnShadeActiveVariant + ?androidprv:attr/customColorShadeInactive + ?androidprv:attr/customColorOnShadeInactive + ?androidprv:attr/customColorOnShadeInactiveVariant + ?androidprv:attr/customColorShadeDisabled + ?androidprv:attr/customColorUnderSurface @style/Control.MenuItem -- cgit v1.2.3-59-g8ed1b