From 77c0a93ac6dfdfece022928d48464630ee5e46b2 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 28 Aug 2021 12:28:15 -0400 Subject: [PATCH] Tweak theme preference item UI --- .../preference/ThemesPreferenceAdapter.kt | 3 --- app/src/main/res/layout/pref_theme_item.xml | 22 +++++++------------ 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreferenceAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreferenceAdapter.kt index c8b65edff2..20a4fdc0db 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreferenceAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreferenceAdapter.kt @@ -54,9 +54,6 @@ class ThemesPreferenceAdapter(private val clickListener: OnItemClickListener) : fun bind(appTheme: PreferenceValues.AppTheme) { binding.name.text = view.context.getString(appTheme.titleResId!!) - // Rounded corners - binding.coverContainer.clipToOutline = true - val isSelected = preferences.appTheme().get() == appTheme binding.themeCard.isChecked = isSelected binding.themeCard.strokeColor = if (isSelected) selectedColor else unselectedColor diff --git a/app/src/main/res/layout/pref_theme_item.xml b/app/src/main/res/layout/pref_theme_item.xml index d8069bf0a5..aa48b76b65 100644 --- a/app/src/main/res/layout/pref_theme_item.xml +++ b/app/src/main/res/layout/pref_theme_item.xml @@ -37,7 +37,7 @@ - + app:tint="?android:attr/divider" /> - - - - -