Skip to content

Commit

Permalink
Fix chapter filter icon tinting
Browse files Browse the repository at this point in the history
  • Loading branch information
arkon committed Sep 27, 2020
1 parent 9d2adcd commit b5986b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/common_tabbed_sheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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>
Expand Down

0 comments on commit b5986b5

Please sign in to comment.