From df950219f5c5fe420a2580dba3912b4a704b73e2 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 13 Mar 2021 17:42:49 -0500 Subject: [PATCH] Use Material dialogs for preferences Partially addresses #2907 (cherry picked from commit 112e233498f45462679ba98daee9d69ce8f790f4) --- app/build.gradle.kts | 2 +- app/src/main/res/values/styles.xml | 13 +++++++++++++ app/src/main/res/values/themes.xml | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index b16f40994..46a2a4003 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -240,7 +240,7 @@ dependencies { implementation("com.bluelinelabs:conductor-support:2.1.5") { exclude(group = "com.android.support") } - implementation("com.github.tachiyomiorg:conductor-support-preference:1.1.1") + implementation("com.github.tachiyomiorg:conductor-support-preference:2.0.0") // FlowBinding val flowbindingVersion = "0.12.0" diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 50a9c46a0..a2ae5ab5f 100755 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -43,6 +43,9 @@ @android:dimen/dialog_min_width_minor ?attr/colorSurface + @style/Theme.MaterialAlertDialog.Style.ShapeAppearance + + @style/Theme.MaterialAlertDialog.Style.Title ?attr/colorOnSurface ?attr/colorOnSurface @@ -51,6 +54,16 @@ @style/Theme.Widget.Button + + + + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 05619eaa4..d6a5e44e2 100755 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -56,7 +56,7 @@ @style/Theme.Toolbar.Navigation @style/PreferenceThemeOverlay @style/Theme.AlertDialog.Light - @style/Theme.AlertDialog.Dark + @style/Theme.AlertDialog.Light @style/Theme.BottomSheet @style/Theme.Widget.Chip @style/Theme.Widget.Button @@ -157,7 +157,7 @@ @style/Theme.Toolbar.Navigation @style/PreferenceThemeOverlay @style/Theme.AlertDialog.Dark - @style/Theme.AlertDialog.Dark + @style/Theme.AlertDialog.Dark @style/Theme.BottomSheet @style/Theme.Widget.Chip @style/Theme.Widget.Button