Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created February 1, 2024 00:24
Show Gist options
  • Save skydoves/f87f0165c76c905772730f4d07666b0e to your computer and use it in GitHub Desktop.
Save skydoves/f87f0165c76c905772730f4d07666b0e to your computer and use it in GitHub Desktop.
gemini_theme
@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