From 2c56a433325e57c0ad73f16ebe13522f75f4b006 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 4 Sep 2020 21:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/book/read/config/BgTextConfigDialog.kt | 8 +++- .../main/res/layout/dialog_read_bg_text.xml | 43 +++++++++++++------ app/src/main/res/layout/item_bg_image.xml | 2 +- 3 files changed, 38 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt index 6232c7b18..98252c6d3 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt @@ -105,7 +105,7 @@ class BgTextConfigDialog : BaseDialogFragment() { headerView.tv_name.setTextColor(secondaryTextColor) headerView.tv_name.text = getString(R.string.select_image) headerView.iv_bg.setImageResource(R.drawable.ic_image) - headerView.iv_bg.setColorFilter(getCompatColor(R.color.primaryText)) + headerView.iv_bg.setColorFilter(primaryTextColor) headerView.onClick { selectImage() } requireContext().assets.list("bg/")?.let { adapter.setItems(it.toList()) @@ -144,6 +144,12 @@ class BgTextConfigDialog : BaseDialogFragment() { ReadBookConfig.resetDur() postEvent(EventBus.UP_CONFIG, false) } + tv_import.onClick { + + } + tv_export.onClick { + + } } private fun selectImage() { diff --git a/app/src/main/res/layout/dialog_read_bg_text.xml b/app/src/main/res/layout/dialog_read_bg_text.xml index 3064f484e..3acffcdca 100644 --- a/app/src/main/res/layout/dialog_read_bg_text.xml +++ b/app/src/main/res/layout/dialog_read_bg_text.xml @@ -1,12 +1,12 @@ +