优化主题颜色

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) { if (v is TextView) {
v.text = entry v.text = entry
val bgColor = context.bottomBackground if (isBottomBackground) {
val pTextColor = context.getPrimaryTextColor(ColorUtils.isColorLight(bgColor)) val bgColor = context.bottomBackground
v.setTextColor(pTextColor) val pTextColor = context.getPrimaryTextColor(ColorUtils.isColorLight(bgColor))
v.setTextColor(pTextColor)
}
} }
super.onBindViewHolder(holder) super.onBindViewHolder(holder)
} }

Loading…
Cancel
Save