From 7f0db1ab153489100e2f6e457860ddb0281d85d0 Mon Sep 17 00:00:00 2001
From: pekingme <8545955+pekingme@users.noreply.github.com>
Date: Fri, 13 Jan 2023 17:37:08 +0000
Subject: [PATCH] [RadioButton] Integrated tokens.
Unselected icon color is changed from colorOnSurface to colorOnSurfaceVariant.
PiperOrigin-RevId: 501869216
---
.../res/color/m3_radiobutton_button_tint.xml | 25 ++++++++-
.../res/color/m3_radiobutton_ripple_tint.xml | 24 +++++---
.../radiobutton/res/values/tokens.xml | 56 +++++++++++++++++++
3 files changed, 94 insertions(+), 11 deletions(-)
create mode 100644 lib/java/com/google/android/material/radiobutton/res/values/tokens.xml
diff --git a/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_button_tint.xml b/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_button_tint.xml
index f1c0b7fe7b7..168e2e3cb4c 100644
--- a/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_button_tint.xml
+++ b/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_button_tint.xml
@@ -16,11 +16,30 @@
-->
-
+
+
-
+
+
+
+
-
+
+
+
+
diff --git a/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_ripple_tint.xml b/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_ripple_tint.xml
index f6fb9099969..40af942a92a 100644
--- a/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_ripple_tint.xml
+++ b/lib/java/com/google/android/material/radiobutton/res/color/m3_radiobutton_ripple_tint.xml
@@ -19,25 +19,33 @@
-
-
-
-
-
-
-
-
+
diff --git a/lib/java/com/google/android/material/radiobutton/res/values/tokens.xml b/lib/java/com/google/android/material/radiobutton/res/values/tokens.xml
new file mode 100644
index 00000000000..739dc485dba
--- /dev/null
+++ b/lib/java/com/google/android/material/radiobutton/res/values/tokens.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+ ?attr/colorPrimary
+ ?attr/colorOnSurfaceVariant
+
+ ?attr/colorOnSurface
+ - 0.38
+ ?attr/colorOnSurface
+ - 0.38
+
+ ?attr/colorPrimary
+ @dimen/m3_sys_state_hover_state_layer_opacity
+ ?attr/colorOnSurface
+ @dimen/m3_sys_state_hover_state_layer_opacity
+
+ ?attr/colorPrimary
+ ?attr/colorOnSurface
+
+ ?attr/colorPrimary
+ @dimen/m3_sys_state_focus_state_layer_opacity
+ ?attr/colorOnSurface
+ @dimen/m3_sys_state_focus_state_layer_opacity
+
+ ?attr/colorPrimary
+ ?attr/colorOnSurface
+
+ ?attr/colorOnSurface
+ @dimen/m3_sys_state_pressed_state_layer_opacity
+ ?attr/colorPrimary
+ @dimen/m3_sys_state_pressed_state_layer_opacity
+
+ ?attr/colorPrimary
+ ?attr/colorOnSurface
+
+