Fix accented UI elements in library sheet being different colors

(cherry picked from commit cd5bcc36734e0959569be6dd5ecd3b3813863207)
(cherry picked from commit eefdeb3c3f5546fdeb63bdbbeafcf704d45086f6)
This commit is contained in:
arkon 2022-06-20 22:51:34 -04:00 committed by Jobobby04
parent 1ef9717443
commit 1ed182853a

View File

@ -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))
}