From 75ff33fb0207536055aeb54b38f00a4e07a7f19c Mon Sep 17 00:00:00 2001 From: pekingme <8545955+pekingme@users.noreply.github.com> Date: Fri, 2 Aug 2024 00:01:08 +0000 Subject: [PATCH] [Button] Updated expressive styles color and structure. PiperOrigin-RevId: 658586627 --- .../m3_btn_elevated_btn_state_list_anim.xml | 1 + .../material/button/res/values/dimens.xml | 1 + .../material/button/res/values/styles.xml | 11 ++++++- .../m3_button_background_color_selector.xml | 7 ++-- .../m3_button_foreground_color_selector.xml | 9 +++-- .../color/m3_button_ripple_color_selector.xml | 33 ++++++++++++++++--- .../material/color/res/values/attrs.xml | 11 ++++++- 7 files changed, 63 insertions(+), 10 deletions(-) diff --git a/lib/java/com/google/android/material/button/res/animator/m3_btn_elevated_btn_state_list_anim.xml b/lib/java/com/google/android/material/button/res/animator/m3_btn_elevated_btn_state_list_anim.xml index c1d5edd7417..64bbc42f6ff 100644 --- a/lib/java/com/google/android/material/button/res/animator/m3_btn_elevated_btn_state_list_anim.xml +++ b/lib/java/com/google/android/material/button/res/animator/m3_btn_elevated_btn_state_list_anim.xml @@ -22,6 +22,7 @@ android:state_enabled="true" android:state_hovered="true"> + 0dp 1dp + 2dp 0dp 0dp diff --git a/lib/java/com/google/android/material/button/res/values/styles.xml b/lib/java/com/google/android/material/button/res/values/styles.xml index ae72e3ac1eb..b44b8dbb7ca 100644 --- a/lib/java/com/google/android/material/button/res/values/styles.xml +++ b/lib/java/com/google/android/material/button/res/values/styles.xml @@ -162,7 +162,6 @@ @@ -301,13 +300,21 @@