From a4f65c309a085bb1cd4b0ce01d30b4fce1e64be1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 6 Mar 2020 16:46:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt | 4 ++-- app/src/main/res/layout/dialog_read_book_style.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt index 7e7d632ab..4a5d435cf 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt @@ -81,7 +81,7 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack { dsb_text_letter_spacing.valueFormat = { ((it - 50) / 100f).toString() } - dsb_line_size.valueFormat = { (it / 10f).toString() } + dsb_line_size.valueFormat = { ((it - 10) / 10f).toString() } dsb_paragraph_spacing.valueFormat = { (it / 10f).toString() } } @@ -132,7 +132,7 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack { callBack?.showPaddingConfig() } dsb_text_size.onChanged = { - ReadBookConfig.textSize = it + 5 + ReadBookConfig.textSize = it + 10 postEvent(EventBus.UP_CONFIG, true) } dsb_text_letter_spacing.onChanged = { diff --git a/app/src/main/res/layout/dialog_read_book_style.xml b/app/src/main/res/layout/dialog_read_book_style.xml index 0722b9e51..f2d8a1810 100644 --- a/app/src/main/res/layout/dialog_read_book_style.xml +++ b/app/src/main/res/layout/dialog_read_book_style.xml @@ -123,7 +123,7 @@ android:layout_height="wrap_content" android:paddingLeft="10dp" android:paddingRight="10dp" - app:max="50" + app:max="20" app:title="@string/line_size" app:layout_constraintTop_toBottomOf="@+id/dsb_text_letter_spacing" /> @@ -133,7 +133,7 @@ android:layout_height="wrap_content" android:paddingLeft="10dp" android:paddingRight="10dp" - app:max="50" + app:max="20" app:title="@string/paragraph_size" app:layout_constraintTop_toBottomOf="@+id/dsb_line_size" />