阅读进度条开关 #125

This commit is contained in:
HapeLee committed 2025-10-22 19:44:34 +08:00
1 parent 310a6e78b0
commit 135afb4a1f
12 files changed
+107 -25

No files matched your search

@@ -153,6 +153,7 @@
tools:ignore="TouchTargetSizeCheck" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/cd_slider"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
+10 -13
View File
@@ -120,7 +120,6 @@
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent">
<!--章节设置-->
<LinearLayout
android:id="@+id/ll_slider"
android:layout_width="match_parent"
@@ -144,6 +143,7 @@
tools:ignore="TouchTargetSizeCheck" />
<com.google.android.material.card.MaterialCardView
android:id="@+id/cd_slider"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
@@ -157,8 +157,6 @@
android:layout_gravity="center_vertical"/>
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.button.MaterialButton
android:id="@+id/tv_next"
style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
@@ -172,16 +170,15 @@
tools:ignore="TouchTargetSizeCheck"/>
</LinearLayout>
<com.google.android.material.button.MaterialButtonGroup
android:id="@+id/bottom_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:overflowMode="menu"
android:paddingVertical="8dp"
android:paddingHorizontal="16dp"
android:background="?attr/colorSurfaceContainer"
android:orientation="horizontal"/>
<com.google.android.material.button.MaterialButtonGroup
android:id="@+id/bottom_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:overflowMode="menu"
android:paddingVertical="8dp"
android:paddingHorizontal="16dp"
android:background="?attr/colorSurfaceContainer"
android:orientation="horizontal"/>
</LinearLayout>
+8
View File
@@ -160,4 +160,12 @@
<item>不显示</item>
</string-array>
<string-array name="read_slider_mode">
<item>常驻</item>
<item>不显示</item>
<item>按钮置左</item>
<item>按钮置右</item>
<item>仅显示滑动条</item>
</string-array>
</resources>
+1
View File
@@ -1303,4 +1303,5 @@
<string name="day_night_switch">深浅色模式开关</string>
<string name="manga_long_click">长按保存图片</string>
<string name="read_type_long">长按设置为全局默认模式</string>
<string name="read_slider_mode">滑动条显示样式</string>
</resources>
+8
View File
@@ -89,4 +89,12 @@
<item>unlabeled</item>
</string-array>
<string-array name="read_slider_mode_value">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>
</resources>
+8
View File
@@ -85,6 +85,14 @@
<item>Always</item>
</string-array>
<string-array name="read_slider_mode">
<item>Always</item>
<item>Disable</item>
<item>Left button</item>
<item>Right button</item>
<item>Only slider</item>
</string-array>
<string-array name="screen_direction_title">
<item>@string/screen_unspecified</item>
<item>@string/screen_portrait</item>
+1
View File
@@ -1304,4 +1304,5 @@
<string name="day_night_switch">深浅色模式开关</string>
<string name="manga_long_click">长按保存图片</string>
<string name="read_type_long">长按设置为全局默认模式</string>
<string name="read_slider_mode">滑动条显示样式</string>
</resources>
@@ -28,6 +28,15 @@
app:iconSpaceReserved="false"
app:isBottomBackground="true" />
<io.legato.kazusa.lib.prefs.NameListPreference
android:defaultValue="0"
android:entries="@array/read_slider_mode"
android:entryValues="@array/read_slider_mode_value"
android:key="read_slider_mode"
android:title="@string/read_slider_mode"
app:iconSpaceReserved="false"
app:isBottomBackground="true" />
<io.legato.kazusa.lib.prefs.Preference
android:key="menuAlpha"
android:summary="@string/menu_alpha_sum"