From d9f722d0d462d697854a5ebbcb56b5807282cc51 Mon Sep 17 00:00:00 2001 From: tomnatan Date: Fri, 12 Nov 2021 17:48:15 +0000 Subject: [PATCH] Change the restart button to use material colors In addition, add a ripple effect to the button. Fix: 198347324 Test: N/A Change-Id: Ibd33f32cf4908ae9d3d02d8043e625e24123aff7 --- .../color/size_compat_background_ripple.xml | 19 ++++++++++++++++++ .../res/drawable/size_compat_hint_bubble.xml | 2 +- .../res/drawable/size_compat_hint_point.xml | 2 +- .../drawable/size_compat_restart_button.xml | 6 +++--- .../size_compat_restart_button_ripple.xml | 20 +++++++++++++++++++ .../res/layout/size_compat_mode_hint.xml | 2 +- .../Shell/res/layout/size_compat_ui.xml | 2 +- .../WindowManager/Shell/res/values/colors.xml | 5 ++++- 8 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 libs/WindowManager/Shell/res/color/size_compat_background_ripple.xml create mode 100644 libs/WindowManager/Shell/res/drawable/size_compat_restart_button_ripple.xml diff --git a/libs/WindowManager/Shell/res/color/size_compat_background_ripple.xml b/libs/WindowManager/Shell/res/color/size_compat_background_ripple.xml new file mode 100644 index 0000000000000..329e5b9b31a0b --- /dev/null +++ b/libs/WindowManager/Shell/res/color/size_compat_background_ripple.xml @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/size_compat_hint_bubble.xml b/libs/WindowManager/Shell/res/drawable/size_compat_hint_bubble.xml index 94165a11eccb5..22cd384e1be06 100644 --- a/libs/WindowManager/Shell/res/drawable/size_compat_hint_bubble.xml +++ b/libs/WindowManager/Shell/res/drawable/size_compat_hint_bubble.xml @@ -16,6 +16,6 @@ --> - + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/drawable/size_compat_hint_point.xml b/libs/WindowManager/Shell/res/drawable/size_compat_hint_point.xml index a8f0f76ef27fa..af9063a94afb8 100644 --- a/libs/WindowManager/Shell/res/drawable/size_compat_hint_point.xml +++ b/libs/WindowManager/Shell/res/drawable/size_compat_hint_point.xml @@ -20,6 +20,6 @@ android:viewportWidth="10" android:viewportHeight="8"> diff --git a/libs/WindowManager/Shell/res/drawable/size_compat_restart_button.xml b/libs/WindowManager/Shell/res/drawable/size_compat_restart_button.xml index 3e486df71f91d..18caa3582537f 100644 --- a/libs/WindowManager/Shell/res/drawable/size_compat_restart_button.xml +++ b/libs/WindowManager/Shell/res/drawable/size_compat_restart_button.xml @@ -20,16 +20,16 @@ android:viewportWidth="48" android:viewportHeight="48"> diff --git a/libs/WindowManager/Shell/res/drawable/size_compat_restart_button_ripple.xml b/libs/WindowManager/Shell/res/drawable/size_compat_restart_button_ripple.xml new file mode 100644 index 0000000000000..95decff24ac4b --- /dev/null +++ b/libs/WindowManager/Shell/res/drawable/size_compat_restart_button_ripple.xml @@ -0,0 +1,20 @@ + + + + + \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/layout/size_compat_mode_hint.xml b/libs/WindowManager/Shell/res/layout/size_compat_mode_hint.xml index 17347f627049a..d0e7c42dbf8bd 100644 --- a/libs/WindowManager/Shell/res/layout/size_compat_mode_hint.xml +++ b/libs/WindowManager/Shell/res/layout/size_compat_mode_hint.xml @@ -40,7 +40,7 @@ android:padding="16dp" android:text="@string/restart_button_description" android:textAlignment="viewStart" - android:textColor="#E4E3DA" + android:textColor="@color/size_compat_text" android:textSize="14sp"/> diff --git a/libs/WindowManager/Shell/res/values/colors.xml b/libs/WindowManager/Shell/res/values/colors.xml index b25a2189cd4db..23a21724e43d0 100644 --- a/libs/WindowManager/Shell/res/values/colors.xml +++ b/libs/WindowManager/Shell/res/values/colors.xml @@ -29,7 +29,10 @@ #FFFFFF @color/GM2_grey_800 @color/GM2_grey_700 - #30312B + + + @android:color/system_neutral1_800 + @android:color/system_neutral1_50 #E8EAED