From 239e7632db9912864c892a538d725d40c47aaf97 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 28 Jan 2022 22:54:34 +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 --- app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt | 2 ++ app/src/main/res/layout/dialog_read_bg_text.xml | 1 - app/src/main/res/layout/view_book_page.xml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt index 8708e1175..5941905e9 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt @@ -19,6 +19,7 @@ import io.legado.app.ui.book.read.page.entities.TextPage import io.legado.app.ui.book.read.page.provider.ChapterProvider import io.legado.app.ui.widget.BatteryView import io.legado.app.utils.* +import splitties.views.backgroundColor import java.util.* /** @@ -185,6 +186,7 @@ class PageView(context: Context) : FrameLayout(context) { } fun setBg(bg: Drawable?) { + binding.vwRoot.backgroundColor = ReadBookConfig.bgMeanColor binding.vwBg.background = bg upBgAlpha() } 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 e2c2a2ee2..54c38f967 100644 --- a/app/src/main/res/layout/dialog_read_bg_text.xml +++ b/app/src/main/res/layout/dialog_read_bg_text.xml @@ -153,7 +153,6 @@ android:id="@+id/sb_bg_alpha" android:layout_width="match_parent" android:layout_height="wrap_content" - android:min="10" android:max="100" android:padding="6dp" tools:ignore="UnusedAttribute" /> diff --git a/app/src/main/res/layout/view_book_page.xml b/app/src/main/res/layout/view_book_page.xml index bb1ffda8b..14054f7cf 100644 --- a/app/src/main/res/layout/view_book_page.xml +++ b/app/src/main/res/layout/view_book_page.xml @@ -3,6 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/vw_root" android:background="@color/background" android:layout_width="match_parent" android:layout_height="match_parent"