优化主题颜色

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

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

Loading…
Cancel
Save