Last active
March 12, 2025 19:54
-
-
Save harmittaa/507079cbbf2b63d4a02316509512522f to your computer and use it in GitHub Desktop.
AppTheme
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
@Composable | |
fun AppTheme( | |
darkTheme: Boolean = isSystemInDarkTheme(), | |
content: @Composable() () -> Unit | |
) { | |
val colorScheme = when { | |
darkTheme -> darkScheme | |
else -> lightScheme | |
} | |
MaterialTheme( | |
colorScheme = colorScheme, | |
typography = AppTypography, | |
content = content | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment