mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-16 04:19:19 +00:00
Update: Almost Full Rewrite of theme
This commit is contained in:
@ -52,7 +52,9 @@ object Utils {
|
||||
|
||||
fun getToolbarIcon(context: Context, resId: Int): Drawable {
|
||||
val drawable = context.getDrawableCompat(resId).mutate()
|
||||
drawable.setTintList(context.getColorFromAttr(android.R.attr.titleTextColor))
|
||||
if (Android.sdk(23)) {
|
||||
drawable.setTintList(context.getColorFromAttr(R.attr.colorOnPrimarySurface))
|
||||
}
|
||||
return drawable
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user