Updated on 2026-08-14
This commit is contained in:
parent
3724f920de
commit
0035d8d115
6 changed files with 83 additions and 5 deletions
7
app/src/main/java/com/tangem/util/extensions/Context.kt
Normal file
7
app/src/main/java/com/tangem/util/extensions/Context.kt
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package com.tangem.util.extensions
|
||||
|
||||
import android.content.Context
|
||||
import androidx.annotation.ColorRes
|
||||
import androidx.core.content.ContextCompat
|
||||
|
||||
fun Context.colorFrom(@ColorRes colorId: Int) = ContextCompat.getColor(this, colorId)
|
||||
Loading…
Add table
Add a link
Reference in a new issue