From b454816c42c7fa229af5d673cbc10f14f9d0c5fa Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 26 Jul 2021 09:13:18 +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 --- .../java/io/legado/app/ui/association/ImportBookSourceDialog.kt | 2 ++ .../io/legado/app/ui/association/ImportReplaceRuleDialog.kt | 2 ++ .../java/io/legado/app/ui/association/ImportRssSourceDialog.kt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt index 905e9d2cb..60ca29a36 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt @@ -25,6 +25,7 @@ import io.legado.app.databinding.DialogRecyclerViewBinding import io.legado.app.databinding.ItemSourceImportBinding import io.legado.app.help.AppConfig import io.legado.app.lib.dialogs.alert +import io.legado.app.lib.theme.primaryColor import io.legado.app.ui.widget.dialog.WaitDialog import io.legado.app.utils.dp import io.legado.app.utils.putPrefBoolean @@ -83,6 +84,7 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList } override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { + binding.toolBar.setBackgroundColor(primaryColor) binding.toolBar.setTitle(R.string.import_book_source) binding.rotateLoading.show() initMenu() diff --git a/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt index d288427c5..32f039253 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt @@ -16,6 +16,7 @@ import io.legado.app.base.adapter.RecyclerAdapter import io.legado.app.data.entities.ReplaceRule import io.legado.app.databinding.DialogRecyclerViewBinding import io.legado.app.databinding.ItemSourceImportBinding +import io.legado.app.lib.theme.primaryColor import io.legado.app.ui.widget.dialog.WaitDialog import io.legado.app.utils.viewbindingdelegate.viewBinding import io.legado.app.utils.visible @@ -65,6 +66,7 @@ class ImportReplaceRuleDialog : BaseDialogFragment() { } override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { + binding.toolBar.setBackgroundColor(primaryColor) binding.toolBar.setTitle(R.string.import_replace_rule) binding.rotateLoading.show() adapter = SourcesAdapter(requireContext()) diff --git a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt index a7f450418..b139beb90 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt @@ -25,6 +25,7 @@ import io.legado.app.databinding.DialogRecyclerViewBinding import io.legado.app.databinding.ItemSourceImportBinding import io.legado.app.help.AppConfig import io.legado.app.lib.dialogs.alert +import io.legado.app.lib.theme.primaryColor import io.legado.app.ui.widget.dialog.WaitDialog import io.legado.app.utils.dp import io.legado.app.utils.putPrefBoolean @@ -80,6 +81,7 @@ class ImportRssSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListe } override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { + binding.toolBar.setBackgroundColor(primaryColor) binding.toolBar.setTitle(R.string.import_rss_source) binding.rotateLoading.show() initMenu()