增加亮度和图片滤镜 (#4813)

* 增加亮度和图片滤镜

* ...

* ...

* ...
This commit is contained in:
lhjgege
2025-03-13 11:42:06 +08:00
committed by GitHub
parent 0b18832803
commit 0403a34c6f
18 changed files with 336 additions and 2 deletions
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
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">
<io.legado.app.ui.widget.text.AccentTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="滤镜"
android:textSize="18sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/brightness"
android:textColor="@color/primaryText"
android:textSize="14sp" />
<io.legado.app.lib.theme.view.ThemeSeekBar
android:id="@+id/seek_brightness"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:max="255" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="R"
android:textColor="@color/primaryText"
android:textSize="14sp" />
<io.legado.app.lib.theme.view.ThemeSeekBar
android:id="@+id/seek_R"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:max="255" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="G"
android:textColor="@color/primaryText"
android:textSize="14sp" />
<io.legado.app.lib.theme.view.ThemeSeekBar
android:id="@+id/seek_g"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:max="255" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="B"
android:textColor="@color/primaryText"
android:textSize="14sp" />
<io.legado.app.lib.theme.view.ThemeSeekBar
android:id="@+id/seek_b"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:max="255" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="A"
android:textColor="@color/primaryText"
android:textSize="14sp" />
<io.legado.app.lib.theme.view.ThemeSeekBar
android:id="@+id/seek_a"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="16dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="16dp"
android:layout_weight="1"
android:max="255" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
+2 -1
View File
@@ -19,7 +19,8 @@
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="?attr/actionBarStyle">
android:theme="?attr/actionBarStyle"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/title_bar_addition"
+6
View File
@@ -68,4 +68,10 @@
android:id="@+id/menu_manga_footer_config"
android:title="@string/manga_footer_config"
app:showAsAction="never" />
<item
android:id="@+id/menu_manga_color_filter"
android:title="@string/manga_color_filter"
app:showAsAction="never" />
</menu>
@@ -1205,4 +1205,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
@@ -1208,4 +1208,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
@@ -1208,4 +1208,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
+1
View File
@@ -1204,4 +1204,5 @@ Còn </string>
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
@@ -1205,4 +1205,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
@@ -1207,4 +1207,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
+1
View File
@@ -1207,4 +1207,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>
+1
View File
@@ -1208,4 +1208,5 @@
<string name="manga_radio_left">靠左</string>
<string name="manga_radio_center">居中</string>
<string name="enable_manga_horizontal_scroll">水平滚动</string>
<string name="manga_color_filter">滤镜</string>
</resources>