From 33dcdc159949e76933f07130fd43d0537c7ea46f Mon Sep 17 00:00:00 2001 From: Soitora Date: Sun, 23 May 2021 00:08:48 +0200 Subject: [PATCH] Ripples patch (#5144) * Combine ripple_dark and ripple_light Fixes AMOLED theme and doesn't require two seperate items. * Fix ripple for the new About icons * Fixes nav/tab ripple in Dark Blue and Light Blue themes * Theme some ripples using their Style instead --- .../{ripple_dark.xml => ripple_background.xml} | 2 +- app/src/main/res/drawable/ripple_light.xml | 5 ----- app/src/main/res/layout/common_tabbed_sheet.xml | 1 - app/src/main/res/layout/main_activity.xml | 3 +-- app/src/main/res/layout/main_activity_toolbar.xml | 3 +-- app/src/main/res/layout/manga_info_header.xml | 5 +---- app/src/main/res/values/styles.xml | 10 ++++------ app/src/main/res/values/themes.xml | 7 +++++-- 8 files changed, 13 insertions(+), 23 deletions(-) rename app/src/main/res/drawable/{ripple_dark.xml => ripple_background.xml} (71%) delete mode 100644 app/src/main/res/drawable/ripple_light.xml diff --git a/app/src/main/res/drawable/ripple_dark.xml b/app/src/main/res/drawable/ripple_background.xml similarity index 71% rename from app/src/main/res/drawable/ripple_dark.xml rename to app/src/main/res/drawable/ripple_background.xml index 82fdde550..7c5163602 100644 --- a/app/src/main/res/drawable/ripple_dark.xml +++ b/app/src/main/res/drawable/ripple_background.xml @@ -1,5 +1,5 @@ - + diff --git a/app/src/main/res/drawable/ripple_light.xml b/app/src/main/res/drawable/ripple_light.xml deleted file mode 100644 index a2bfca1d9..000000000 --- a/app/src/main/res/drawable/ripple_light.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/app/src/main/res/layout/common_tabbed_sheet.xml b/app/src/main/res/layout/common_tabbed_sheet.xml index cc62721b9..39a8044a9 100644 --- a/app/src/main/res/layout/common_tabbed_sheet.xml +++ b/app/src/main/res/layout/common_tabbed_sheet.xml @@ -24,7 +24,6 @@ app:tabGravity="fill" app:tabIndicatorColor="?attr/colorAccent" app:tabMode="fixed" - app:tabRippleColor="?attr/rippleNavColor" app:tabTextColor="@color/tabs_selector_background" /> + android:layout_height="wrap_content" /> + android:layout_height="wrap_content" /> + app:layout_constraintTop_toBottomOf="@+id/manga_info" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 7b158ea97..07351f3ee 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -308,6 +308,7 @@ false @android:color/transparent + ?attr/rippleColor top @color/button_action_selector @@ -347,6 +348,7 @@ 75dp scrollable @style/TextAppearance.Widget.Tab + ?attr/rippleNavColor @@ -370,12 +372,8 @@ - - - diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 4477d23f7..e88bc1198 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -59,7 +59,7 @@ @drawable/ic_close_24dp @style/ThemeOverlay.MaterialComponents @style/Theme.Toolbar.Navigation - @style/PreferenceThemeLight + @style/PreferenceThemeCustom @style/Theme.AlertDialog.Light @style/Theme.AlertDialog.Light @style/Theme.BottomSheet @@ -104,6 +104,7 @@ @color/textColorPrimaryDark @color/colorPrimaryDark @color/filterColorDark + @color/md_white_1000_6 @style/Theme.Toolbar.Light false false @@ -157,7 +158,7 @@ @style/Theme.Toolbar.Custom @style/ThemeOverlay.MaterialComponents @style/Theme.Toolbar.Navigation - @style/PreferenceThemeDark + @style/PreferenceThemeCustom @style/Theme.AlertDialog.Dark @style/Theme.AlertDialog.Dark @style/Theme.BottomSheet @@ -193,6 +194,8 @@ @color/colorPrimary @color/textColorPrimaryDark @color/colorPrimary + + @color/md_white_1000_6