pull/306/head
gedoor 4 years ago
parent 9282e060a9
commit 61ab39d262
  1. 6
      app/src/main/java/io/legado/app/ui/widget/text/BadgeView.kt

@ -148,7 +148,11 @@ class BadgeView @JvmOverloads constructor(
}
fun setHighlight(highlight: Boolean) {
setBackground(context.getCompatColor(if (highlight) R.color.highlight else R.color.darker_gray))
if (highlight) {
setBackground(context.accentColor)
} else {
setBackground(context.getCompatColor(R.color.darker_gray))
}
}
fun setBadgeMargin(dipMargin: Int) {

Loading…
Cancel
Save