From f7f7faf28b1119c815f243d3bcb500c8789872bc Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 7 Sep 2020 14:44:40 +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 --- .../legado/app/ui/widget/prefs/IconListPreference.kt | 2 ++ app/src/main/res/layout/dialog_read_bg_text.xml | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt b/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt index eea138375..7747c6bf2 100644 --- a/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt +++ b/app/src/main/java/io/legado/app/ui/widget/prefs/IconListPreference.kt @@ -18,6 +18,7 @@ import io.legado.app.R import io.legado.app.base.BaseDialogFragment import io.legado.app.base.adapter.ItemViewHolder import io.legado.app.base.adapter.SimpleRecyclerAdapter +import io.legado.app.lib.theme.primaryColor import io.legado.app.utils.getCompatDrawable import kotlinx.android.synthetic.main.dialog_recycler_view.* import kotlinx.android.synthetic.main.item_icon_preference.view.* @@ -136,6 +137,7 @@ class IconListPreference(context: Context, attrs: AttributeSet) : ListPreference } override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { + tool_bar.setBackgroundColor(primaryColor) tool_bar.setTitle(R.string.change_icon) recycler_view.layoutManager = LinearLayoutManager(requireContext()) val adapter = Adapter(requireContext()) 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 060dc9302..e4b51710e 100644 --- a/app/src/main/res/layout/dialog_read_bg_text.xml +++ b/app/src/main/res/layout/dialog_read_bg_text.xml @@ -27,7 +27,7 @@ android:id="@+id/tv_text_color" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_weight="2" + android:layout_weight="5" android:layout_gravity="center" android:layout_marginLeft="6dp" android:layout_marginRight="6dp" @@ -44,7 +44,7 @@ android:id="@+id/tv_bg_color" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_weight="2" + android:layout_weight="5" android:layout_gravity="center" android:layout_marginLeft="6dp" android:layout_marginRight="6dp" @@ -61,7 +61,7 @@ android:id="@+id/tv_default" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_weight="1" + android:layout_weight="3" android:layout_gravity="center" android:layout_marginLeft="6dp" android:layout_marginRight="6dp" @@ -78,7 +78,7 @@ android:id="@+id/tv_import" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_weight="1" + android:layout_weight="3" android:layout_gravity="center" android:layout_marginLeft="6dp" android:layout_marginRight="6dp" @@ -95,7 +95,7 @@ android:id="@+id/tv_export" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_weight="1" + android:layout_weight="3" android:layout_gravity="center" android:layout_marginLeft="6dp" android:layout_marginRight="6dp"