Skip to content

Instantly share code, notes, and snippets.

@catalinghita8
Created September 27, 2020 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catalinghita8/acf91409619ca27127c316fe100466e1 to your computer and use it in GitHub Desktop.
Save catalinghita8/acf91409619ca27127c316fe100466e1 to your computer and use it in GitHub Desktop.
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