mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Remove unused widget styles and animations
This commit is contained in:
parent
ed51989796
commit
01dd46c5ed
13 changed files with 14 additions and 121 deletions
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromXDelta="-100%"
|
||||
android:toXDelta="0%" />
|
||||
</set>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromXDelta="100%"
|
||||
android:toXDelta="0%" />
|
||||
</set>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromXDelta="0%"
|
||||
android:toXDelta="-100%" />
|
||||
</set>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="200"
|
||||
android:fromXDelta="0%"
|
||||
android:toXDelta="100%" />
|
||||
</set>
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<alpha
|
||||
android:duration="300"
|
||||
android:fillAfter="true"
|
||||
android:fromAlpha="0.0"
|
||||
android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:toAlpha="1.0" />
|
||||
</set>
|
|
@ -1,18 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/selectorColorDark">
|
||||
android:color="?attr/colorLibrarySelection">
|
||||
<item>
|
||||
<selector>
|
||||
<item android:state_selected="true">
|
||||
<color android:color="@color/selectorColorDark" />
|
||||
<color android:color="?attr/colorLibrarySelectionActive" />
|
||||
</item>
|
||||
|
||||
<item android:state_activated="true">
|
||||
<color android:color="@color/selectorColorDark" />
|
||||
<color android:color="?attr/colorLibrarySelectionActive" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<color android:color="@color/md_black_1000" />
|
||||
<color android:color="?android:attr/colorBackground" />
|
||||
</item>
|
||||
</selector>
|
||||
</item>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/colorAccentDark">
|
||||
<item>
|
||||
<selector>
|
||||
<item android:state_selected="true">
|
||||
<color android:color="@color/selectorColorDark" />
|
||||
</item>
|
||||
|
||||
<item android:state_activated="true">
|
||||
<color android:color="@color/selectorColorDark" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<color android:color="@color/backgroundDark" />
|
||||
</item>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/colorAccentLight">
|
||||
<item>
|
||||
<selector>
|
||||
<item android:state_selected="true">
|
||||
<color android:color="@color/selectorColorLight" />
|
||||
</item>
|
||||
|
||||
<item android:state_activated="true">
|
||||
<color android:color="@color/selectorColorLight" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<color android:color="@color/backgroundLight" />
|
||||
</item>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
|
@ -4,7 +4,7 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?selectable_library_drawable"
|
||||
android:background="@drawable/library_item_selector"
|
||||
android:padding="4dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
<attr name="max_seek" format="integer"/>
|
||||
</declare-styleable>
|
||||
|
||||
<attr name="selectable_library_drawable" format="reference|integer"/>
|
||||
<attr name="colorLibrarySelection" format="reference|integer"/>
|
||||
<attr name="colorLibrarySelectionActive" format="reference|integer"/>
|
||||
<attr name="colorFilterActive" format="reference|integer"/>
|
||||
<attr name="colorBackgroundSplash" format="reference|integer"/>
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<item name="catalogue_filter_sort_group" type="id"/>
|
||||
<item name="catalogue_filter_sort_item" type="id"/>
|
||||
|
||||
<item name="reader_pager" type="id"/>
|
||||
</resources>
|
||||
</resources>
|
||||
|
|
|
@ -172,14 +172,6 @@
|
|||
</style>
|
||||
|
||||
|
||||
<style name="Theme.Widget.CheckBox" />
|
||||
|
||||
<style name="Theme.Widget.CheckBox.Light" parent="TextAppearance.Regular.Body1">
|
||||
<item name="android:textColor">@color/md_white_1000</item>
|
||||
<item name="buttonTint">@color/md_white_1000</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Theme.Widget.SpinnerItem" parent="Widget.AppCompat.DropDownItem.Spinner">
|
||||
<item name="android:textColor">?attr/colorOnSurface</item>
|
||||
<item name="android:background">@drawable/list_item_selector</item>
|
||||
|
@ -302,16 +294,6 @@
|
|||
<!--===-->
|
||||
<!--OLD-->
|
||||
<!--===-->
|
||||
<style name="AlertDialogStyle" parent="Theme.MaterialComponents.Light.Dialog.Alert">
|
||||
<item name="android:windowTitleStyle">@style/DialogTitleText</item>
|
||||
<item name="colorAccent">?attr/colorPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogTitleText">
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Title</item>
|
||||
</style>
|
||||
|
||||
<style name="FilePickerTheme" parent="NNF_BaseTheme.Light">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimary</item>
|
||||
|
@ -326,14 +308,4 @@
|
|||
|
||||
<style name="FilePickerAlertDialogTheme" parent="Theme.MaterialComponents.Light.Dialog.Alert" />
|
||||
|
||||
<style name="reader_settings_popup_animation">
|
||||
<item name="android:windowEnterAnimation">@anim/enter_from_right</item>
|
||||
<item name="android:windowExitAnimation">@anim/exit_to_right</item>
|
||||
</style>
|
||||
|
||||
<style name="reader_brightness_popup_animation">
|
||||
<item name="android:windowEnterAnimation">@anim/enter_from_left</item>
|
||||
<item name="android:windowExitAnimation">@anim/exit_to_left</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -59,7 +59,8 @@
|
|||
<item name="android:itemTextAppearance">@style/TextAppearance.Widget.Menu</item>
|
||||
|
||||
<!-- Custom Attributes-->
|
||||
<item name="selectable_library_drawable">@drawable/library_item_selector_light</item>
|
||||
<item name="colorLibrarySelection">?attr/colorAccent</item>
|
||||
<item name="colorLibrarySelectionActive">@color/selectorColorLight</item>
|
||||
<item name="colorFilterActive">@color/filterColorDark</item>
|
||||
</style>
|
||||
|
||||
|
@ -134,7 +135,8 @@
|
|||
<item name="md_background_color">?attr/colorSurface</item>
|
||||
|
||||
<!-- Custom Attributes-->
|
||||
<item name="selectable_library_drawable">@drawable/library_item_selector_dark</item>
|
||||
<item name="colorLibrarySelection">?attr/colorAccent</item>
|
||||
<item name="colorLibrarySelectionActive">@color/selectorColorDark</item>
|
||||
<item name="colorFilterActive">@color/filterColorDark</item>
|
||||
</style>
|
||||
|
||||
|
@ -163,7 +165,8 @@
|
|||
<item name="md_background_color">@color/colorAmoledPrimary</item>
|
||||
|
||||
<!-- Custom Attributes-->
|
||||
<item name="selectable_library_drawable">@drawable/library_item_selector_amoled</item>
|
||||
<item name="colorLibrarySelection">@color/selectorColorDark</item>
|
||||
<item name="colorLibrarySelectionActive">@color/selectorColorDark</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.Tachiyomi.Amoled" parent="Theme.Base.Amoled">
|
||||
|
|
Loading…
Reference in a new issue