From af82591d8595ea1255bae53cd6ac8e72cd3ccc99 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 20 Jun 2022 22:51:34 -0400 Subject: [PATCH] Fix accented UI elements in library sheet being different colors (cherry picked from commit cd5bcc36734e0959569be6dd5ecd3b3813863207) --- .../java/eu/kanade/tachiyomi/widget/ExtendedNavigationView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/ExtendedNavigationView.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/ExtendedNavigationView.kt index f1dfe7f12..c27abfad1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/ExtendedNavigationView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/ExtendedNavigationView.kt @@ -73,7 +73,7 @@ open class ExtendedNavigationView @JvmOverloads constructor( * @param context any context. * @param resId the vector resource to load and tint */ - fun tintVector(context: Context, resId: Int, @AttrRes colorAttrRes: Int = R.attr.colorAccent): Drawable { + fun tintVector(context: Context, resId: Int, @AttrRes colorAttrRes: Int = R.attr.colorPrimary): Drawable { return AppCompatResources.getDrawable(context, resId)!!.apply { setTint(context.getResourceColor(if (enabled) colorAttrRes else R.attr.colorControlNormal)) }