Created
September 27, 2020 08:51
-
-
Save catalinghita8/acf91409619ca27127c316fe100466e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.ui.graphics.Color | |
object Helper { | |
fun getColor(colorString: String) = | |
Color(android.graphics.Color.parseColor("#$colorString")) | |
fun getGreenColor() = getColor("9963890a") | |
fun getWhiteColor() = getColor("FFFFFFFF") | |
fun getRedColor() = getColor("99ac162c") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment