同步上游更改: @lhjgege

新漫画增加墨水屏模式 (#5181)
* 新漫画增加墨水屏模式
* 增加水平滚动动画开关
This commit is contained in:
lhjgege authored and HapeLee committed 2025-07-11 13:40:10 +08:00
1 parent 329cdac774
commit 06dd2ac2c1
16 files changed
+463 -29

No files matched your search

@@ -14,7 +14,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:text="滤镜"
android:text="@string/manga_color_filter"
android:textSize="18sp" />
<io.legato.kazusa.ui.widget.DetailSeekBar
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:text="@string/manga_epaper_stting"
android:textSize="18sp" />
<io.legato.kazusa.ui.widget.DetailSeekBar
android:id="@+id/dsb_epaper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:max="255"
app:title="@string/manga_epaper_value" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
+43 -12
View File
@@ -98,20 +98,51 @@
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:strokeWidth="0dp"
app:cardBackgroundColor="?attr/colorPrimaryContainer">
<TextView
android:id="@+id/tv_abi"
android:layout_width="match_parent"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="ABI: arm64-v8a"
android:textColor="?attr/colorOnSurfaceVariant"
android:textAppearance="?attr/textAppearanceBodySmall" />
</com.google.android.material.card.MaterialCardView>
app:cardBackgroundColor="?attr/colorPrimaryContainer"
app:strokeWidth="0dp">
<TextView
android:id="@+id/tv_abi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="ABI: arm64-v8a"
android:textAppearance="?attr/textAppearanceBodySmall"
android:textColor="?attr/colorOnSurfaceVariant" />
</com.google.android.material.card.MaterialCardView>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginHorizontal="8dp"
android:layout_weight="1"
android:background="?attr/colorSecondary" />
<com.google.android.material.card.MaterialCardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:cardBackgroundColor="?attr/colorPrimaryContainer"
app:strokeWidth="0dp">
<TextView
android:id="@+id/tv_variable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="123"
android:textAppearance="?attr/textAppearanceBodyMedium" />
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
<TextView
android:id="@+id/tv_url"
+28
View File
@@ -71,6 +71,14 @@
android:title="@string/enable_manga_horizontal_scroll"
app:showAsAction="never" />
<item
android:id="@+id/menu_disable_horizontal_animation"
android:checkable="true"
android:checked="false"
android:title="@string/disable_horizontal_animation"
android:visible="false"
app:showAsAction="never" />
<item
android:id="@+id/menu_manga_footer_config"
android:title="@string/manga_footer_config"
@@ -88,4 +96,24 @@
android:title="@string/hide_manga_title"
app:showAsAction="never" />
<item
android:id="@+id/menu_epaper_manga"
android:checkable="true"
android:checked="false"
android:title="@string/manga_epaper"
app:showAsAction="never" />
<item
android:id="@+id/menu_epaper_manga_setting"
android:title="@string/manga_epaper_stting"
android:visible="false"
app:showAsAction="never" />
<item
android:id="@+id/menu_gray_manga"
android:checkable="true"
android:checked="false"
android:title="@string/enable_manga_gray"
app:showAsAction="never" />
</menu>
+10
View File
@@ -1217,8 +1217,18 @@
<string name="manga_color_filter">滤镜</string>
<string name="hide_manga_title">隐藏漫画列表标题</string>
<string name="refresh_explore">刷新发现</string>
<string name="ungroup">未分组</string>
<string name="dynamic_colors">动态取色</string>
<string name="change_icon_success">图标已修改</string>
<string name="replace_rule_title_setting">配置替换规则</string>
<string name="more_setting">更多设置</string>
<string name="read_chapter_total">共 %d 章</string>
<string name="read_chapter_index">已读 %d 章</string>
<string name="manga_epaper">墨水屏</string>
<string name="manga_epaper_stting">墨水屏设置</string>
<string name="manga_epaper_value">阈值</string>
<string name="disable_horizontal_animation">禁用水平滚动动画</string>
<string name="enable_manga_gray">开启图片灰色</string>
</resources>
+6
View File
@@ -1226,4 +1226,10 @@
<string name="read_chapter_total">共 %d 章</string>
<string name="read_chapter_index">已读 %d 章</string>
<string name="manga_epaper">墨水屏</string>
<string name="manga_epaper_stting">墨水屏设置</string>
<string name="manga_epaper_value">阈值</string>
<string name="disable_horizontal_animation">禁用水平滚动动画</string>
<string name="enable_manga_gray">开启图片灰色</string>
</resources>