Tweak theme preference item UI

This commit is contained in:
arkon
2021-08-28 12:28:15 -04:00
parent 63a3e126b3
commit 77c0a93ac6
2 changed files with 8 additions and 17 deletions

View File

@ -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