From 194343de01cf22a1136ff53fedcc0b654d6b65eb Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 9 Feb 2020 21:10:54 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E9=BB=98=E8=AE=A4=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 底部操作条更明显 --- .../app/ui/filechooser/FileChooserDialog.kt | 4 +--- app/src/main/res/drawable/item_bg_dark.xml | 2 +- app/src/main/res/drawable/item_bg_light.xml | 2 +- .../main/res/layout/activity_arrange_book.xml | 2 +- .../main/res/layout/activity_book_source.xml | 2 +- .../main/res/layout/activity_import_book.xml | 2 +- .../main/res/layout/activity_rss_source.xml | 2 +- .../main/res/layout/dialog_change_source.xml | 2 +- .../main/res/layout/dialog_file_chooser.xml | 1 + app/src/main/res/layout/dialog_font_select.xml | 1 + .../main/res/layout/dialog_recycler_view.xml | 1 + .../main/res/layout/dialog_replace_edit.xml | 1 + app/src/main/res/values-night/colors.xml | 6 +++--- app/src/main/res/values/colors.xml | 7 +++---- app/src/main/res/values/styles.xml | 2 +- package.json | 18 +++++++++++++++++- 16 files changed, 36 insertions(+), 19 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt b/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt index 8cb1e5abe..46c1271fc 100644 --- a/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt +++ b/app/src/main/java/io/legado/app/ui/filechooser/FileChooserDialog.kt @@ -13,7 +13,6 @@ import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import io.legado.app.R import io.legado.app.constant.Theme -import io.legado.app.lib.theme.ATH import io.legado.app.ui.filechooser.adapter.FileAdapter import io.legado.app.ui.filechooser.adapter.PathAdapter import io.legado.app.utils.* @@ -90,8 +89,7 @@ class FileChooserDialog : DialogFragment(), override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - ATH.applyBackgroundTint(view) - ATH.applyBackgroundTint(rv_path) + view.setBackgroundResource(R.color.background_card) arguments?.let { requestCode = it.getInt("requestCode") mode = it.getInt("mode", FILE) diff --git a/app/src/main/res/drawable/item_bg_dark.xml b/app/src/main/res/drawable/item_bg_dark.xml index 054b06f9a..341befb27 100644 --- a/app/src/main/res/drawable/item_bg_dark.xml +++ b/app/src/main/res/drawable/item_bg_dark.xml @@ -1,3 +1,3 @@ \ No newline at end of file + android:color="@color/md_grey_800" /> \ No newline at end of file diff --git a/app/src/main/res/drawable/item_bg_light.xml b/app/src/main/res/drawable/item_bg_light.xml index ef3428fe4..e336c3154 100644 --- a/app/src/main/res/drawable/item_bg_light.xml +++ b/app/src/main/res/drawable/item_bg_light.xml @@ -1,3 +1,3 @@ \ No newline at end of file + android:color="@color/md_grey_200" /> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_arrange_book.xml b/app/src/main/res/layout/activity_arrange_book.xml index 66642e134..c18e0ad14 100644 --- a/app/src/main/res/layout/activity_arrange_book.xml +++ b/app/src/main/res/layout/activity_arrange_book.xml @@ -21,7 +21,7 @@ diff --git a/app/src/main/res/layout/dialog_font_select.xml b/app/src/main/res/layout/dialog_font_select.xml index 60f080003..e4148f763 100644 --- a/app/src/main/res/layout/dialog_font_select.xml +++ b/app/src/main/res/layout/dialog_font_select.xml @@ -7,6 +7,7 @@ diff --git a/app/src/main/res/layout/dialog_recycler_view.xml b/app/src/main/res/layout/dialog_recycler_view.xml index 6ac7d8c01..0acc844ce 100644 --- a/app/src/main/res/layout/dialog_recycler_view.xml +++ b/app/src/main/res/layout/dialog_recycler_view.xml @@ -6,6 +6,7 @@ diff --git a/app/src/main/res/layout/dialog_replace_edit.xml b/app/src/main/res/layout/dialog_replace_edit.xml index 4f6a23c6e..b9ef6fb2f 100644 --- a/app/src/main/res/layout/dialog_replace_edit.xml +++ b/app/src/main/res/layout/dialog_replace_edit.xml @@ -7,6 +7,7 @@ diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 4933cfa2b..18ab012e0 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -4,9 +4,9 @@ @color/md_blue_grey_700 @color/md_deep_orange_800 - @color/md_grey_800 - #353535 - #282828 + @color/md_grey_900 + @color/md_grey_850 + @color/md_grey_800 #69000000 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index d150286a4..d6999a7ae 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -7,16 +7,15 @@ #FF578FCC #FF212227 - #FF272731 #eb4333 #439b53 #00000000 - @color/md_grey_100 - #dedede - #fcfcfc + @color/md_grey_50 + @color/md_grey_100 + @color/md_grey_200 #00000000 #30000000 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index ec0b50735..d5c9e7104 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -41,7 +41,7 @@