mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Move boolean reading mode prefs to Compose sheet
Also allow webtoon side padding to be any amount between 0 - 25%.
This commit is contained in:
		| @@ -1,7 +1,6 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="wrap_content" | ||||
|     android:orientation="vertical"> | ||||
| @@ -44,77 +43,4 @@ | ||||
|         android:entries="@array/zoom_start" | ||||
|         app:title="@string/pref_zoom_start" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/crop_borders" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_crop_borders" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/landscape_zoom" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_landscape_zoom" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/navigate_pan" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_navigate_pan" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/dual_page_split" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_dual_page_split" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/dual_page_invert" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_dual_page_invert" | ||||
|         android:textColor="?android:attr/textColorSecondary" | ||||
|         android:visibility="gone" | ||||
|         tools:visibility="visible" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/dual_page_rotate_to_fit" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_page_rotate" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/dual_page_rotate_to_fit_invert" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_page_rotate_invert" | ||||
|         android:textColor="?android:attr/textColorSecondary" | ||||
|         android:visibility="gone" | ||||
|         tools:visibility="visible" /> | ||||
|  | ||||
|     <androidx.constraintlayout.widget.Group | ||||
|         android:id="@+id/tapping_prefs_group" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         app:constraint_referenced_ids="pager_nav,tapping_inverted,dual_page_split,dual_page_invert,dual_page_rotate_to_fit,dual_page_rotate_to_fit_invert" /> | ||||
|  | ||||
| </LinearLayout> | ||||
|   | ||||
| @@ -36,7 +36,6 @@ | ||||
|             android:entries="@array/rotation_type" | ||||
|             app:title="@string/rotation_type" /> | ||||
|  | ||||
|         <!-- Pager preferences --> | ||||
|         <include | ||||
|             android:id="@+id/pager_prefs_group" | ||||
|             layout="@layout/reader_pager_settings" | ||||
| @@ -45,7 +44,6 @@ | ||||
|             android:visibility="gone" | ||||
|             tools:visibility="visible" /> | ||||
|  | ||||
|         <!-- Webtoon preferences --> | ||||
|         <include | ||||
|             android:id="@+id/webtoon_prefs_group" | ||||
|             layout="@layout/reader_webtoon_settings" | ||||
|   | ||||
| @@ -1,7 +1,6 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="wrap_content" | ||||
|     android:orientation="vertical"> | ||||
| @@ -30,64 +29,4 @@ | ||||
|         android:entries="@array/invert_tapping_mode" | ||||
|         app:title="@string/pref_read_with_tapping_inverted" /> | ||||
|  | ||||
|     <eu.kanade.tachiyomi.widget.MaterialSpinnerView | ||||
|         android:id="@+id/webtoon_side_padding" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:entries="@array/webtoon_side_padding" | ||||
|         app:title="@string/pref_webtoon_side_padding" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/crop_borders_webtoon" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_crop_borders" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/dual_page_split" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_dual_page_split" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/dual_page_invert" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingHorizontal="16dp" | ||||
|         android:paddingVertical="16dp" | ||||
|         android:text="@string/pref_dual_page_invert" | ||||
|         android:textColor="?android:attr/textColorSecondary" | ||||
|         android:visibility="gone" | ||||
|         tools:visibility="visible" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/long_strip_split" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingStart="16dp" | ||||
|         android:paddingEnd="16dp" | ||||
|         android:text="@string/pref_long_strip_split" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <com.google.android.material.materialswitch.MaterialSwitch | ||||
|         android:id="@+id/double_tap_zoom" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:paddingStart="16dp" | ||||
|         android:paddingEnd="16dp" | ||||
|         android:text="@string/pref_double_tap_zoom" | ||||
|         android:textColor="?android:attr/textColorSecondary" /> | ||||
|  | ||||
|     <androidx.constraintlayout.widget.Group | ||||
|         android:id="@+id/tapping_prefs_group" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         app:constraint_referenced_ids="webtoon_nav,tapping_inverted,dual_page_split,dual_page_invert" /> | ||||
|  | ||||
| </LinearLayout> | ||||
|   | ||||
| @@ -18,24 +18,6 @@ | ||||
|         <item>@string/scale_type_smart_fit</item> | ||||
|     </string-array> | ||||
|  | ||||
|     <string-array name="webtoon_side_padding"> | ||||
|         <item>@string/webtoon_side_padding_0</item> | ||||
|         <item>@string/webtoon_side_padding_5</item> | ||||
|         <item>@string/webtoon_side_padding_10</item> | ||||
|         <item>@string/webtoon_side_padding_15</item> | ||||
|         <item>@string/webtoon_side_padding_20</item> | ||||
|         <item>@string/webtoon_side_padding_25</item> | ||||
|     </string-array> | ||||
|  | ||||
|     <string-array name="webtoon_side_padding_values"> | ||||
|         <item>0</item> | ||||
|         <item>5</item> | ||||
|         <item>10</item> | ||||
|         <item>15</item> | ||||
|         <item>20</item> | ||||
|         <item>25</item> | ||||
|     </string-array> | ||||
|  | ||||
|     <string-array name="zoom_start"> | ||||
|         <item>@string/zoom_start_automatic</item> | ||||
|         <item>@string/zoom_start_left</item> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user