-
-
Save skydoves/f87f0165c76c905772730f4d07666b0e to your computer and use it in GitHub Desktop.
gemini_theme
This file contains hidden or 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
@Composable | |
fun GeminiComposeTheme( | |
darkTheme: Boolean = isSystemInDarkTheme(), | |
content: @Composable () -> Unit | |
) { | |
val streamColors = if (darkTheme) { | |
StreamColors.defaultDarkColors().copy( | |
appBackground = BACKGROUND900, | |
primaryAccent = STREAM_PRIMARY, | |
ownMessagesBackground = STREAM_PRIMARY | |
) | |
} else { | |
StreamColors.defaultColors().copy( | |
primaryAccent = STREAM_PRIMARY, | |
ownMessagesBackground = STREAM_PRIMARY_LIGHT | |
) | |
} | |
ChatTheme( | |
colors = streamColors, | |
reactionIconFactory = GeminiReactionFactory(), | |
content = content | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment