Parcourir la source

Replace filter group icons with expand more/less

arkon il y a 4 ans
Parent
commit
4e633b8936

+ 2 - 2
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/filter/GroupItem.kt

@@ -36,9 +36,9 @@ class GroupItem(val filter: Filter.Group<*>) : AbstractExpandableHeaderItem<Grou
 
         holder.icon.setVectorCompat(
             if (isExpanded) {
-                R.drawable.ic_expand_more_white_24dp
+                R.drawable.ic_baseline_expand_less_24dp
             } else {
-                R.drawable.ic_chevron_right_white_24dp
+                R.drawable.ic_baseline_expand_more_24dp
             }
         )
 

+ 2 - 2
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/filter/SortGroup.kt

@@ -33,9 +33,9 @@ class SortGroup(val filter: Filter.Sort) : AbstractExpandableHeaderItem<SortGrou
 
         holder.icon.setVectorCompat(
             if (isExpanded) {
-                R.drawable.ic_expand_more_white_24dp
+                R.drawable.ic_baseline_expand_less_24dp
             } else {
-                R.drawable.ic_chevron_right_white_24dp
+                R.drawable.ic_baseline_expand_more_24dp
             }
         )
 

+ 9 - 0
app/src/main/res/drawable/ic_baseline_expand_less_24dp.xml

@@ -0,0 +1,9 @@
+<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="M12,8l-6,6 1.41,1.41L12,10.83l4.59,4.58L18,14z" />
+</vector>

+ 9 - 0
app/src/main/res/drawable/ic_baseline_expand_more_24dp.xml

@@ -0,0 +1,9 @@
+<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="M16.59,8.59L12,13.17 7.41,8.59 6,10l6,6 6,-6z" />
+</vector>

+ 0 - 9
app/src/main/res/drawable/ic_chevron_right_white_24dp.xml

@@ -1,9 +0,0 @@
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="24.0"
-        android:viewportHeight="24.0">
-    <path
-        android:fillColor="#FFFFFFFF"
-        android:pathData="M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z"/>
-</vector>

+ 0 - 9
app/src/main/res/drawable/ic_expand_more_white_24dp.xml

@@ -1,9 +0,0 @@
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="24.0"
-        android:viewportHeight="24.0">
-    <path
-        android:fillColor="#FFFFFFFF"
-        android:pathData="M16.59,8.59L12,13.17 7.41,8.59 6,10l6,6 6,-6z"/>
-</vector>