Selaa lähdekoodia

Fix chapter filter icon tinting

arkon 4 vuotta sitten
vanhempi
commit
b5986b509e

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/MangaChaptersHeaderAdapter.kt

@@ -64,7 +64,7 @@ class MangaChaptersHeaderAdapter(
             val filterColor = if (hasActiveFilters) {
                 view.context.getResourceColor(R.attr.colorFilterActive)
             } else {
-                view.context.getResourceColor(R.attr.colorOnPrimary)
+                view.context.getResourceColor(R.attr.colorOnBackground)
             }
             DrawableCompat.setTint(binding.btnChaptersFilter.drawable, filterColor)
 

+ 3 - 2
app/src/main/res/layout/common_tabbed_sheet.xml

@@ -8,7 +8,8 @@
 
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:background="?attr/colorPrimary">
 
         <com.google.android.material.tabs.TabLayout
             android:id="@+id/tabs"
@@ -35,7 +36,7 @@
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintTop_toTopOf="parent"
             app:srcCompat="@drawable/ic_more_vert_24dp"
-            app:tint="?attr/colorOnBackground"
+            app:tint="?attr/colorOnPrimary"
             tools:visibility="visible" />
 
     </androidx.constraintlayout.widget.ConstraintLayout>