Double reader integration

This commit is contained in:
Koitharu
2024-01-29 18:57:18 +02:00
parent 4194609929
commit 131a0ffcaa
13 changed files with 127 additions and 36 deletions

View File

@@ -0,0 +1,22 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M4,4C2.89,4 2,4.89 2,6L2,18C2,19.11 2.89,20 4,20L9,20L9,18L8,18L6,18L4,18L4,6L6,6L8,6L9,6L9,4L4,4zM15,4L15,6L16,6L18,6L20,6L20,18L18,18L16,18L15,18L15,20L20,20C21.1,20 22,19.11 22,18L22,6C22,4.89 21.1,4 20,4L15,4z" />
<path
android:fillColor="#FF000000"
android:pathData="m11,21l-0,-3l2,0l-0,3z" />
<path
android:fillColor="#FF000000"
android:pathData="m13,3l-0,3l-2,0l-0,-3l2,0" />
<path
android:fillColor="#FF000000"
android:pathData="m11,16l-0,-3l2,0l-0,3l-2,0" />
<path
android:fillColor="#FF000000"
android:pathData="m11,11l-0,-3l2,0l-0,3l-2,0" />
</vector>

View File

@@ -119,15 +119,6 @@
android:text="@string/webtoon"
app:icon="@drawable/ic_script" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_double"
style="@style/Widget.Kotatsu.ToggleButton.Vertical"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/two_pages"
app:icon="@drawable/ic_pager_double_ltr" />
</com.google.android.material.button.MaterialButtonToggleGroup>
<TextView
@@ -139,7 +130,7 @@
android:textAppearance="?attr/textAppearanceBodySmall" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/switch_scroll_timer"
android:id="@+id/switch_double_reader"
android:layout_width="match_parent"
android:layout_height="?android:listPreferredItemHeightSmall"
android:layout_marginTop="@dimen/margin_normal"
@@ -148,6 +139,20 @@
android:paddingStart="?android:listPreferredItemPaddingStart"
android:paddingEnd="?android:listPreferredItemPaddingEnd"
android:singleLine="true"
android:text="@string/use_two_pages_landscape"
android:textAppearance="?attr/textAppearanceButton"
android:textColor="?colorOnSurfaceVariant"
app:drawableStartCompat="@drawable/ic_split_horizontal" />
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/switch_scroll_timer"
android:layout_width="match_parent"
android:layout_height="?android:listPreferredItemHeightSmall"
android:drawablePadding="?android:listPreferredItemPaddingStart"
android:ellipsize="end"
android:paddingStart="?android:listPreferredItemPaddingStart"
android:paddingEnd="?android:listPreferredItemPaddingEnd"
android:singleLine="true"
android:text="@string/automatic_scroll"
android:textAppearance="?attr/textAppearanceButton"
android:textColor="?colorOnSurfaceVariant"

View File

@@ -582,4 +582,5 @@
<string name="long_tap_action">Long tap action</string>
<string name="none">None</string>
<string name="config_reset_confirm">Reset settings to default values? This action cannot be undone.</string>
<string name="use_two_pages_landscape">Use two pages layout on landscape orientation (beta)</string>
</resources>