Last active
March 27, 2021 09:28
-
-
Save gustavkarlsson/af7deeb45b3aed0faae181157d4fbd04 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
data class MyColors( | |
val material: Colors, | |
val warning: Color, | |
val onWarning: Color, | |
) { | |
val primary: Color get() = material.primary | |
val primaryVariant: Color get() = material.primaryVariant | |
val secondary: Color get() = material.secondary | |
val secondaryVariant: Color get() = material.secondaryVariant | |
val background: Color get() = material.background | |
val surface: Color get() = material.surface | |
val error: Color get() = material.error | |
val onPrimary: Color get() = material.onPrimary | |
val onSecondary: Color get() = material.onSecondary | |
val onBackground: Color get() = material.onBackground | |
val onSurface: Color get() = material.onSurface | |
val onError: Color get() = material.onError | |
val isLight: Boolean get() = material.isLight | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment