From e0d23cd688070ab729da1aea2bb9d29dcad331c8 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 9 Jul 2022 00:00:18 -0400 Subject: [PATCH] Use Material3 switches in XML layouts (cherry picked from commit da7a64b40dda3368565b329e519da3283c797131) --- app/src/main/res/layout/pref_settings.xml | 2 +- .../layout/pref_widget_switch_material.xml | 2 +- .../layout/reader_color_filter_settings.xml | 24 +++++------ .../res/layout/reader_general_settings.xml | 42 +++++++++---------- .../main/res/layout/reader_pager_settings.xml | 30 ++++++------- .../res/layout/reader_webtoon_settings.xml | 18 ++++---- app/src/main/res/values/themes.xml | 2 + gradle/libs.versions.toml | 2 +- 8 files changed, 62 insertions(+), 60 deletions(-) diff --git a/app/src/main/res/layout/pref_settings.xml b/app/src/main/res/layout/pref_settings.xml index a4b6f6ebac..413139331a 100644 --- a/app/src/main/res/layout/pref_settings.xml +++ b/app/src/main/res/layout/pref_settings.xml @@ -17,7 +17,7 @@ app:tint="?attr/colorOnBackground" /> - diff --git a/app/src/main/res/layout/pref_widget_switch_material.xml b/app/src/main/res/layout/pref_widget_switch_material.xml index 65bcaf6dc1..53dea7ec00 100644 --- a/app/src/main/res/layout/pref_widget_switch_material.xml +++ b/app/src/main/res/layout/pref_widget_switch_material.xml @@ -1,5 +1,5 @@ - - @@ -61,12 +61,12 @@ - - - diff --git a/app/src/main/res/layout/reader_general_settings.xml b/app/src/main/res/layout/reader_general_settings.xml index 00e248ec1b..1d9fe94a32 100644 --- a/app/src/main/res/layout/reader_general_settings.xml +++ b/app/src/main/res/layout/reader_general_settings.xml @@ -17,68 +17,68 @@ android:entries="@array/reader_themes" app:title="@string/pref_reader_theme" /> - - - - - - - diff --git a/app/src/main/res/layout/reader_pager_settings.xml b/app/src/main/res/layout/reader_pager_settings.xml index b792de12d8..086c2d1a55 100644 --- a/app/src/main/res/layout/reader_pager_settings.xml +++ b/app/src/main/res/layout/reader_pager_settings.xml @@ -37,12 +37,12 @@ android:entries="@array/image_scale_type" app:title="@string/pref_image_scale_type" /> - @@ -53,39 +53,39 @@ android:entries="@array/zoom_start" app:title="@string/pref_zoom_start" /> - - - - - - - @style/Widget.Tachiyomi.BottomNavigationView @style/Widget.Tachiyomi.NavigationRailView @style/Widget.Tachiyomi.Switch + @style/Widget.Material3.CompoundButton.MaterialSwitch + @style/Widget.Tachiyomi.Switch @style/Widget.Tachiyomi.Slider @style/Widget.Material3.CardView.Elevated diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0e1b8a7a25..baa29f9158 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -57,7 +57,7 @@ natural-comparator = "com.github.gpanther:java-nat-sort:natural-comparator-1.1" markwon = "io.noties.markwon:core:4.6.2" -material = "com.google.android.material:material:1.7.0-alpha01" +material = "com.google.android.material:material:1.7.0-alpha02" androidprocessbutton = "com.github.dmytrodanylyk.android-process-button:library:1.0.4" flexible-adapter-core = "com.github.arkon.FlexibleAdapter:flexible-adapter:c8013533" flexible-adapter-ui = "com.github.arkon.FlexibleAdapter:flexible-adapter-ui:c8013533"