From 85cc80c3224c7dc67747a494b9abafc254fbc5de Mon Sep 17 00:00:00 2001 From: Santosh Pingle Date: Wed, 27 Sep 2023 12:45:40 +0530 Subject: [PATCH 1/5] Update material3 theme. --- demo/src/main/AndroidManifest.xml | 1 - demo/src/main/res/layout/activity_main.xml | 3 +- demo/src/main/res/values/colors.xml | 90 +++++++++++++++++++++- demo/src/main/res/values/styles.xml | 68 +++++++++++----- 4 files changed, 139 insertions(+), 23 deletions(-) diff --git a/demo/src/main/AndroidManifest.xml b/demo/src/main/AndroidManifest.xml index 72154d82af..904124c520 100644 --- a/demo/src/main/AndroidManifest.xml +++ b/demo/src/main/AndroidManifest.xml @@ -29,7 +29,6 @@ diff --git a/demo/src/main/res/layout/activity_main.xml b/demo/src/main/res/layout/activity_main.xml index 248eb19710..f5633103f7 100644 --- a/demo/src/main/res/layout/activity_main.xml +++ b/demo/src/main/res/layout/activity_main.xml @@ -37,14 +37,13 @@ android:id="@+id/app_bar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:theme="@style/AppTheme.AppBarOverlay" > diff --git a/demo/src/main/res/values/colors.xml b/demo/src/main/res/values/colors.xml index c9ffbf7cbe..fad8b2fb17 100644 --- a/demo/src/main/res/values/colors.xml +++ b/demo/src/main/res/values/colors.xml @@ -28,6 +28,94 @@ #10156125 #ffffff #E8F0FE - #FFFFFFFF #9AFFFFFF + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + #F8F9FA + #F1F3F4 + #E8EAED + #F1F3F4 + #3C4043 + #5F6368 + #202124 + #1A73E8 + #1967D2 + #1A73E8 + #8AB4F8 + #618AB4F8 + #D2E3FC + #E8F0FE + #D93025 + #F28B82 + #5F6368 + #DADCE0 + + #0B57D0 + #FFFFFF + #D3E3FD + #041E49 + + #00639B + #FFFFFF + #C2E7FF + #001D35 + + #146C2E + #FFFFFF + #C4EED0 + #072711 + + #B3261E + #FFFFFF + #F9DEDC + #410E0B + + #FFFFFF + #1F1F1F + + #FFFFFF + #1F1F1F + + #E1E3E1 + #444746 + + #747775 + + #A8C7FA + #062E6F + #0842A0 + #D3E3FD + + #7FCFFF + #003355 + #004A77 + #C2E7FF + + #146C2E + #0A3818 + #0F5223 + #C4EED0 + + #F2B8B5 + #601410 + #8C1D18 + #F9DEDC + + #1F1F1F + #E3E3E3 + + #1F1F1F + #E3E3E3 + + #444746 + #C4C7C5 + + #8E918F diff --git a/demo/src/main/res/values/styles.xml b/demo/src/main/res/values/styles.xml index 90c77bed96..dcc7451ccb 100644 --- a/demo/src/main/res/values/styles.xml +++ b/demo/src/main/res/values/styles.xml @@ -13,29 +13,59 @@ See the License for the specific language governing permissions and limitations under the License. --> - + - + + @color/secondary_blue_40 + @color/onSecondary_blue_100 + @color/secondaryContainer_blue_90 + @color/onSecondaryContainer_blue_10 + + @color/tertiary_green_40 + @color/onTertiary_green_100 + @color/tertiaryContainer_green_90 + @color/onTertiaryContainer_green_10 + + @color/error_red_40 + @color/errorContainer_red_100 + @color/onError_red_90 + @color/onErrorContainer_red_10 - + From 1f807ad98ac10d43c48ab7aeeb0266ca02498e40 Mon Sep 17 00:00:00 2001 From: Santosh Pingle Date: Wed, 27 Sep 2023 17:55:37 +0530 Subject: [PATCH 3/5] Address review comments. --- demo/src/main/res/layout/activity_main.xml | 2 +- demo/src/main/res/values-night/{themes.xml => styles.xml} | 0 demo/src/main/res/values/colors.xml | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) rename demo/src/main/res/values-night/{themes.xml => styles.xml} (100%) diff --git a/demo/src/main/res/layout/activity_main.xml b/demo/src/main/res/layout/activity_main.xml index f5633103f7..f665c02b55 100644 --- a/demo/src/main/res/layout/activity_main.xml +++ b/demo/src/main/res/layout/activity_main.xml @@ -43,7 +43,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/colorOnPrimary" + android:background="?attr/colorSurface" /> diff --git a/demo/src/main/res/values-night/themes.xml b/demo/src/main/res/values-night/styles.xml similarity index 100% rename from demo/src/main/res/values-night/themes.xml rename to demo/src/main/res/values-night/styles.xml diff --git a/demo/src/main/res/values/colors.xml b/demo/src/main/res/values/colors.xml index fad8b2fb17..d3e76d49f2 100644 --- a/demo/src/main/res/values/colors.xml +++ b/demo/src/main/res/values/colors.xml @@ -15,10 +15,7 @@ limitations under the License. --> - #175adf - #3700B3 #175adf - #175adf #388e3c #e8f5e9 #FFBF00 From aa7081d5c6657b9e67e8a20b329aa221e8d19f8b Mon Sep 17 00:00:00 2001 From: Santosh Pingle Date: Thu, 28 Sep 2023 16:52:03 +0530 Subject: [PATCH 4/5] Address review comments. --- .../main/res/layout/fragment_patient_list.xml | 2 -- demo/src/main/res/values/colors.xml | 28 ------------------- 2 files changed, 30 deletions(-) diff --git a/demo/src/main/res/layout/fragment_patient_list.xml b/demo/src/main/res/layout/fragment_patient_list.xml index be68c4514a..12fe261bda 100644 --- a/demo/src/main/res/layout/fragment_patient_list.xml +++ b/demo/src/main/res/layout/fragment_patient_list.xml @@ -41,8 +41,6 @@ android:layout_marginEnd="12dp" android:layout_marginBottom="12dp" android:clickable="true" - android:foregroundTint="#ffffff" - app:backgroundTint="@color/colorAccent" app:srcCompat="@drawable/ic_baseline_add_24" /> diff --git a/demo/src/main/res/values/colors.xml b/demo/src/main/res/values/colors.xml index d3e76d49f2..236ba54d2b 100644 --- a/demo/src/main/res/values/colors.xml +++ b/demo/src/main/res/values/colors.xml @@ -15,7 +15,6 @@ limitations under the License. --> - #175adf #388e3c #e8f5e9 #FFBF00 @@ -27,33 +26,6 @@ #E8F0FE #9AFFFFFF - - #FFBB86FC - #FF6200EE - #FF3700B3 - #FF03DAC5 - #FF018786 - #FF000000 - #FFFFFFFF - #F8F9FA - #F1F3F4 - #E8EAED - #F1F3F4 - #3C4043 - #5F6368 - #202124 - #1A73E8 - #1967D2 - #1A73E8 - #8AB4F8 - #618AB4F8 - #D2E3FC - #E8F0FE - #D93025 - #F28B82 - #5F6368 - #DADCE0 - #0B57D0 #FFFFFF #D3E3FD From a3fe332de6b38a3d8996fd4d67d11a5d61b5d104 Mon Sep 17 00:00:00 2001 From: Santosh Pingle Date: Fri, 29 Sep 2023 12:03:56 +0530 Subject: [PATCH 5/5] Update m3 typography. --- demo/src/main/res/values/styles.xml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/demo/src/main/res/values/styles.xml b/demo/src/main/res/values/styles.xml index dcc7451ccb..3096ca4f64 100644 --- a/demo/src/main/res/values/styles.xml +++ b/demo/src/main/res/values/styles.xml @@ -67,7 +67,7 @@ - @@ -79,16 +79,21 @@