优化主题颜色

pull/374/head
gedoor 4 years ago
parent f707df1f61
commit 6d3143e8d2
  1. 8
      app/src/main/java/io/legado/app/ui/widget/prefs/NameListPreference.kt

@ -36,9 +36,11 @@ class NameListPreference(context: Context, attrs: AttributeSet) : ListPreference
)
if (v is TextView) {
v.text = entry
val bgColor = context.bottomBackground
val pTextColor = context.getPrimaryTextColor(ColorUtils.isColorLight(bgColor))
v.setTextColor(pTextColor)
if (isBottomBackground) {
val bgColor = context.bottomBackground
val pTextColor = context.getPrimaryTextColor(ColorUtils.isColorLight(bgColor))
v.setTextColor(pTextColor)
}
}
super.onBindViewHolder(holder)
}

Loading…
Cancel
Save