mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Remove legacy settings sheet
The per-series settings aren't quite functional yet, but they're also accessible outside of the sheet.
This commit is contained in:
		| @@ -1,10 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:duration="300" | ||||
|     android:interpolator="@android:interpolator/fast_out_slow_in"> | ||||
|  | ||||
|     <translate | ||||
|         android:fromYDelta="100%p" | ||||
|         android:toYDelta="0" /> | ||||
|  | ||||
| </set> | ||||
| @@ -1,10 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <set xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:duration="300" | ||||
|     android:interpolator="@android:interpolator/fast_out_slow_in"> | ||||
|  | ||||
|     <translate | ||||
|         android:fromYDelta="0" | ||||
|         android:toYDelta="100%p" /> | ||||
|  | ||||
| </set> | ||||
| @@ -1,9 +0,0 @@ | ||||
| <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="@android:color/black" | ||||
|         android:pathData="M16.59,8.59L12,13.17 7.41,8.59 6,10l6,6 6,-6z" /> | ||||
| </vector> | ||||
| @@ -1,58 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <androidx.constraintlayout.widget.ConstraintLayout 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="?attr/listPreferredItemHeightSmall" | ||||
|     android:background="?attr/selectableItemBackground" | ||||
|     android:paddingStart="16dp" | ||||
|     android:paddingEnd="16dp"> | ||||
|  | ||||
|     <com.google.android.material.textview.MaterialTextView | ||||
|         android:id="@+id/title" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:ellipsize="end" | ||||
|         android:maxLines="1" | ||||
|         android:paddingEnd="8dp" | ||||
|         android:textColor="?android:attr/textColorSecondary" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintEnd_toStartOf="@+id/center_guideline" | ||||
|         app:layout_constraintHorizontal_bias="0.0" | ||||
|         app:layout_constraintStart_toStartOf="parent" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         tools:text="Title" /> | ||||
|  | ||||
|     <com.google.android.material.textview.MaterialTextView | ||||
|         android:id="@+id/details" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:maxLines="1" | ||||
|         android:textColor="?android:attr/textColorPrimary" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintEnd_toStartOf="@+id/dropdown_caret" | ||||
|         app:layout_constraintHorizontal_bias="0.0" | ||||
|         app:layout_constraintStart_toEndOf="@+id/center_guideline" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         tools:text="Details" /> | ||||
|  | ||||
|     <ImageView | ||||
|         android:id="@+id/dropdown_caret" | ||||
|         android:layout_width="24dp" | ||||
|         android:layout_height="24dp" | ||||
|         android:layout_marginStart="1dp" | ||||
|         android:src="@drawable/ic_expand_more_24dp" | ||||
|         app:layout_constraintBottom_toBottomOf="@id/details" | ||||
|         app:layout_constraintEnd_toEndOf="parent" | ||||
|         app:layout_constraintTop_toTopOf="@id/details" | ||||
|         app:tint="?android:attr/colorControlNormal" | ||||
|         tools:ignore="ContentDescription" /> | ||||
|  | ||||
|     <androidx.constraintlayout.widget.Guideline | ||||
|         android:id="@+id/center_guideline" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:orientation="vertical" | ||||
|         app:layout_constraintGuide_percent="0.5" /> | ||||
|  | ||||
| </androidx.constraintlayout.widget.ConstraintLayout> | ||||
| @@ -118,19 +118,6 @@ | ||||
|                     app:srcCompat="@drawable/ic_screen_rotation_24dp" | ||||
|                     app:tint="?attr/colorOnSurface" /> | ||||
|  | ||||
|                 <ImageButton | ||||
|                     android:id="@+id/action_settings_legacy" | ||||
|                     android:layout_width="wrap_content" | ||||
|                     android:layout_height="match_parent" | ||||
|                     android:background="?attr/selectableItemBackgroundBorderless" | ||||
|                     android:contentDescription="@string/action_settings" | ||||
|                     android:padding="@dimen/screen_edge_margin" | ||||
|                     app:layout_constraintEnd_toStartOf="@+id/action_settings" | ||||
|                     app:layout_constraintStart_toEndOf="@id/action_rotation" | ||||
|                     app:layout_constraintTop_toTopOf="parent" | ||||
|                     app:srcCompat="@drawable/ic_settings_24dp" | ||||
|                     app:tint="?attr/colorOnSurface" /> | ||||
|  | ||||
|                 <ImageButton | ||||
|                     android:id="@+id/action_settings" | ||||
|                     android:layout_width="wrap_content" | ||||
| @@ -139,7 +126,7 @@ | ||||
|                     android:contentDescription="@string/action_settings" | ||||
|                     android:padding="@dimen/screen_edge_margin" | ||||
|                     app:layout_constraintEnd_toEndOf="parent" | ||||
|                     app:layout_constraintStart_toEndOf="@id/action_settings_legacy" | ||||
|                     app:layout_constraintStart_toEndOf="@id/action_rotation" | ||||
|                     app:layout_constraintTop_toTopOf="parent" | ||||
|                     app:srcCompat="@drawable/ic_settings_24dp" | ||||
|                     app:tint="?attr/colorOnSurface" /> | ||||
|   | ||||
| @@ -1,29 +0,0 @@ | ||||
| <?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="wrap_content"> | ||||
|  | ||||
|     <LinearLayout | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:orientation="vertical"> | ||||
|  | ||||
|         <eu.kanade.tachiyomi.widget.MaterialSpinnerView | ||||
|             android:id="@+id/viewer" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:entries="@array/viewers_selector" | ||||
|             app:title="@string/pref_category_reading_mode" /> | ||||
|  | ||||
|         <eu.kanade.tachiyomi.widget.MaterialSpinnerView | ||||
|             android:id="@+id/rotation_mode" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_marginBottom="24dp" | ||||
|             android:entries="@array/rotation_type" | ||||
|             app:title="@string/rotation_type" /> | ||||
|  | ||||
|     </LinearLayout> | ||||
|  | ||||
| </androidx.core.widget.NestedScrollView> | ||||
| @@ -1,10 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <resources> | ||||
|  | ||||
|     <declare-styleable name="MaterialSpinnerView"> | ||||
|         <attr name="title" format="reference|string"/> | ||||
|         <attr name="android:entries"/> | ||||
|         <attr name="summary" format="reference|string" /> | ||||
|     </declare-styleable> | ||||
|  | ||||
| </resources> | ||||
| @@ -1,6 +1,4 @@ | ||||
| <resources> | ||||
|     <dimen name="dialog_radius">8dp</dimen> | ||||
|  | ||||
|     <dimen name="screen_edge_margin">16dp</dimen> | ||||
|  | ||||
|     <dimen name="appwidget_background_radius">16dp</dimen> | ||||
|   | ||||
| @@ -20,33 +20,6 @@ | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <!--===========--> | ||||
|     <!--BottomSheet--> | ||||
|     <!--===========--> | ||||
|  | ||||
|     <style name="ThemeOverlay.Tachiyomi.BottomSheetDialog" parent="ThemeOverlay.Material3.BottomSheetDialog"> | ||||
|         <item name="bottomSheetStyle">@style/Widget.Tachiyomi.BottomSheet.Modal</item> | ||||
|         <item name="android:windowAnimationStyle">@style/Animation.Tachiyomi.BottomSheetDialog</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Widget.Tachiyomi.BottomSheet.Modal" parent="Widget.Material3.BottomSheet.Modal"> | ||||
|         <item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Tachiyomi.BottomSheet</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="ShapeAppearanceOverlay.Tachiyomi.BottomSheet" parent=""> | ||||
|         <item name="cornerFamily">rounded</item> | ||||
|         <item name="cornerSizeTopRight">@dimen/dialog_radius</item> | ||||
|         <item name="cornerSizeTopLeft">@dimen/dialog_radius</item> | ||||
|         <item name="cornerSizeBottomRight">0dp</item> | ||||
|         <item name="cornerSizeBottomLeft">0dp</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Animation.Tachiyomi.BottomSheetDialog" parent="Animation.AppCompat.Dialog"> | ||||
|         <item name="android:windowEnterAnimation">@anim/bottom_sheet_slide_in</item> | ||||
|         <item name="android:windowExitAnimation">@anim/bottom_sheet_slide_out</item> | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <!--===============--> | ||||
|     <!--Text Appearance--> | ||||
|     <!--===============--> | ||||
| @@ -71,18 +44,6 @@ | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <!--=================--> | ||||
|     <!--Widgets.TabLayout--> | ||||
|     <!--=================--> | ||||
|     <style name="Widget.Tachiyomi.TabLayout" parent="Widget.Material3.TabLayout"> | ||||
|         <item name="tabGravity">center</item> | ||||
|         <item name="tabInlineLabel">true</item> | ||||
|         <item name="tabMinWidth">75dp</item> | ||||
|         <item name="tabMode">scrollable</item> | ||||
|         <item name="tabRippleColor">@color/ripple_toolbar_fainter</item> | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <!--==============--> | ||||
|     <!--Widgets.Switch--> | ||||
|     <!--==============--> | ||||
| @@ -94,16 +55,6 @@ | ||||
|         <item name="elevationOverlayEnabled">@bool/elevationOverlayEnabled</item> | ||||
|     </style> | ||||
|  | ||||
|     <!--==============--> | ||||
|     <!--Widgets.Slider--> | ||||
|     <!--==============--> | ||||
|     <style name="Widget.Tachiyomi.Slider" parent="Widget.Material3.Slider"> | ||||
|         <item name="labelBehavior">gone</item> | ||||
|         <item name="tickVisible">false</item> | ||||
|         <item name="trackColorInactive">@color/slider_inactive_track</item> | ||||
|         <item name="trackColorActive">@color/slider_active_track</item> | ||||
|     </style> | ||||
|  | ||||
|  | ||||
|     <!--============--> | ||||
|     <!--FastScroller--> | ||||
|   | ||||
| @@ -64,17 +64,13 @@ | ||||
|         <item name="android:backgroundDimAmount">0.32</item> | ||||
|         <item name="windowActionModeOverlay">true</item> | ||||
|         <item name="actionOverflowButtonStyle">@style/Theme.Tachiyomi.ActionButton.Overflow</item> | ||||
|         <item name="actionModeCloseDrawable">@drawable/ic_close_24dp</item> | ||||
|         <item name="preferenceTheme">@style/PreferenceThemeOverlay.Tachiyomi</item> | ||||
|         <item name="bottomSheetDialogTheme">@style/ThemeOverlay.Tachiyomi.BottomSheetDialog</item> | ||||
|         <item name="textInputStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item> | ||||
|         <item name="appBarLayoutStyle">@style/Widget.Material3.AppBarLayout</item> | ||||
|         <item name="toolbarStyle">@style/Widget.Material3.Toolbar.Surface</item> | ||||
|         <item name="tabStyle">@style/Widget.Tachiyomi.TabLayout</item> | ||||
|         <item name="switchStyle">@style/Widget.Tachiyomi.Switch</item> | ||||
|         <item name="materialSwitchStyle">@style/Widget.Material3.CompoundButton.MaterialSwitch</item> | ||||
|         <item name="switchPreferenceCompatStyle">@style/Widget.Tachiyomi.Switch</item> | ||||
|         <item name="sliderStyle">@style/Widget.Tachiyomi.Slider</item> | ||||
|         <item name="materialCardViewStyle">@style/Widget.Material3.CardView.Elevated</item> | ||||
|  | ||||
|         <!-- Preference text appearance --> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user