pull/457/head
gedoor 4 years ago
parent 587b763675
commit 669e6f599f
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt

@ -120,6 +120,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack {
var editText: AutoCompleteTextView? = null
customView {
layoutInflater.inflate(R.layout.dialog_edit_text, null).apply {
edit_view.setText(ReadBookConfig.durConfig.name)
editText = edit_view
}
}
@ -130,7 +131,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack {
}
}
cancelButton()
}
}.show().applyTint()
}
sw_dark_status_icon.onCheckedChange { buttonView, isChecked ->
if (buttonView?.isPressed == true) {

@ -245,6 +245,7 @@ class ReadStyleDialog : BaseDialogFragment(), FontSelectDialog.CallBack {
payloads: MutableList<Any>
) {
holder.itemView.apply {
iv_style.setText(item.name.ifBlank { "文字" })
iv_style.setTextColor(item.curTextColor())
iv_style.setImageDrawable(item.curBgDrawable(100, 150))
if (ReadBookConfig.styleSelect == holder.layoutPosition) {

Loading…
Cancel
Save