From 112e233498f45462679ba98daee9d69ce8f790f4 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 --- 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 139bef170..8671dcf9e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -233,7 +233,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 2c5e99598..17b2831a1 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -31,6 +31,9 @@ @android:dimen/dialog_min_width_minor ?attr/colorSurface + @style/Theme.MaterialAlertDialog.Style.ShapeAppearance + + @style/Theme.MaterialAlertDialog.Style.Title ?attr/colorOnSurface ?attr/colorOnSurface @@ -39,6 +42,16 @@ @style/Theme.Widget.Button + + + + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 3d7bdb4e0..def145cf5 100644 --- 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 @@ -150,7 +150,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