Skip to content

Instantly share code, notes, and snippets.

@azazellj
Created May 27, 2024 20:49
Show Gist options
  • Save azazellj/be7ed8d80bd8d75a86ae715d619b1c3e to your computer and use it in GitHub Desktop.
Save azazellj/be7ed8d80bd8d75a86ae715d619b1c3e to your computer and use it in GitHub Desktop.
internal data class ComposeColor(val value: String) : GeneratedType
// replace color from #ffffffff to 0xffffffff
internal val ComposeColor.valueFormatted: String get() = value.replace("#", "0x")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment